static void FOG_CDECL EventLoop_ctorCopy(EventLoop* self, const EventLoop* other) { EventLoopImpl* d = other->_d; if (d != NULL) d = d->addRef(); self->_d = d; }
static err_t FOG_CDECL EventLoop_copy(EventLoop* self, const EventLoop* other) { EventLoopImpl* d = other->_d; if (d) d = d->addRef(); atomicPtrXchg(&self->_d, d); if (d) d->release(); return ERR_OK; }