{
std::lock_guard<std::mutex> tLock(__mutex);
+ DSLOG_INF("DSWaylandCompositor",
+ "[Get] instance __refCount=%d !", __refCount);
+
if (!__comp && (__refCount == 0))
{
__comp = new DSWaylandCompositor(new DSObject);
DSLOG_INF("DSWaylandCompositor",
- "Get instance has been created !");
+ "DSWaylandCompositor instance has been created !");
}
- DSLOG_INF("DSWaylandCompositor",
- "DSWaylandCompositor instance __refCount=%d !", __refCount);
++__refCount;
return __comp;
}
if (__refCount < 0)
__refCount = 0;
DSLOG_INF("DSWaylandCompositor",
- "Release instance __refCount=%d !", __refCount);
+ "[Release] instance __refCount=%d !", __refCount);
if ((0 == __refCount) && __comp)
{
delete __comp;
__comp = nullptr;
DSLOG_INF("DSWaylandCompositor",
- "DSWaylandCompositor instance has been deleted !");
+ "DSWaylandCompositor instance has been removed !");
}
}