Method& Method::operator=( Method rhs ) { release_(); vm_ = rhs.vm_; method_ = rhs.method_; refCount_ = rhs.refCount_; retain_(); return *this; }
static aug_chan* chan_process_(aug_chan* ob, aug_chandler* handler, aug_bool* fork) { struct impl_* impl = AUG_PODIMPL(struct impl_, chan_, ob); /* Lock here to prevent release during callback. */ retain_(impl); if (!aug_readychan(handler, &impl->chan_, 0)) { release_(impl); return NULL; } return ob; }
static void chan_retain_(aug_chan* ob) { struct impl_* impl = AUG_PODIMPL(struct impl_, chan_, ob); retain_(impl); }
static void stream_retain_(aug_stream* ob) { struct impl_* impl = AUG_PODIMPL(struct impl_, stream_, ob); retain_(impl); }
static void blob_retain_(aug_blob* obj) { struct impl_* impl = AUG_PODIMPL(struct impl_, blob_, obj); retain_(impl); }
static void mar_retain_(aug_mar* obj) { struct impl_* impl = AUG_PODIMPL(struct impl_, mar_, obj); retain_(impl); }
Method::Method( const Method& other ) : vm_( other.vm_ ), method_( other.method_ ), refCount_( other.refCount_ ) { retain_(); }