[cairo] save/restore smart ptr? [cairomm]
Rafael Fernández López
ereslibre at kde.org
Fri Aug 28 10:13:35 PDT 2009
Hi all,
On projects I have written (where I have implemented this typically as
a mutex locker for a critical section) I have called it as:
ContextMutexLocker. This way you could use (in C++):
void function()
{
// non critical section
{
ContextMutexLocker cml(lock);
// critical section
}
// non critical section
}
In this same sense, this could be called something like: ContextClip
(obviously, a c-cairo-style-call).
Regards,
Rafael Fernández López.
More information about the cairo
mailing list