Example #1
0
void Poolable::free()
{
    if (isAlive())
    {
        setAlive(false);
        onFree();
    }
}
Example #2
0
	/**
	* Освободить объект
	*/
	void Object::release()
	{
		unsigned char c;
		__asm__ __volatile__(
			"lock decl %0; sete %1"
			:"=m" (ref_count), "=qm" (c)
			:"m" (ref_count)
		);
		if ( c != 0 ) onFree();
	}