예제 #1
0
 SharedObject WeakRef::shared() {
   SharedObject ret;
   if (alive()) {
     ret.assignNode((*this)->raw_);
   }
   return ret;
 }
예제 #2
0
SharedObject SharedObject::clone() const {
  SharedObject ret;
  if (!isNull()) {
    ret.assignNode((*this)->clone());
  }
  return ret;
}
예제 #3
0
void loadDll(const char *name)
{
    SharedObject *so = new SharedObject;
    so->load(name, true);
}
예제 #4
0
 WeakRef::WeakRef(SharedObject shared) {
   assignNode(shared.weak()->get());
 }
예제 #5
0
 LoadedObject(const char * name)
 {
     so.load(name, true);
 }
void PassAccessorThread(SharedObject<int>::Accessor& acc){
  ASSERT_EQ(1, acc.access());
}