static void FOG_CDECL EventLoop_dtor(EventLoop* self) { EventLoopImpl* d = self->_d; if (d) d->release(); }
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; }