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