Example #1
0
Method& Method::operator=( Method rhs ) {
    release_();
    vm_ = rhs.vm_;
    method_ = rhs.method_;
    refCount_ = rhs.refCount_;
    retain_();
    return *this;
}
Example #2
0
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;
}
Example #3
0
static void
chan_retain_(aug_chan* ob)
{
    struct impl_* impl = AUG_PODIMPL(struct impl_, chan_, ob);
    retain_(impl);
}
Example #4
0
static void
stream_retain_(aug_stream* ob)
{
    struct impl_* impl = AUG_PODIMPL(struct impl_, stream_, ob);
    retain_(impl);
}
Example #5
0
File: mar.c Project: marayl/aug
static void
blob_retain_(aug_blob* obj)
{
    struct impl_* impl = AUG_PODIMPL(struct impl_, blob_, obj);
    retain_(impl);
}
Example #6
0
File: mar.c Project: marayl/aug
static void
mar_retain_(aug_mar* obj)
{
    struct impl_* impl = AUG_PODIMPL(struct impl_, mar_, obj);
    retain_(impl);
}
Example #7
0
Method::Method( const Method& other )
:   vm_( other.vm_ ),
    method_( other.method_ ),
    refCount_( other.refCount_ ) {
    retain_();
}