Rework the thread utilities so that: We don't pay for a recursive mutex when we don't need the debugging capabilities, a race condition in the reader/writer locks is removed and the interfaces and (still inlined) implementations are separated for improved readability.
This commit is contained in:
@@ -29,11 +29,6 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
#if TRACE_MYRWMUTEX==1 && !defined NDEBUG
|
||||
unsigned int MyReaderLock::readerLockCounter = 0;
|
||||
unsigned int MyWriterLock::writerLockCounter = 0;
|
||||
#endif
|
||||
|
||||
Glib::RefPtr<Gdk::Pixbuf> MyExpander::inconsistentPBuf;
|
||||
Glib::RefPtr<Gdk::Pixbuf> MyExpander::enabledPBuf;
|
||||
Glib::RefPtr<Gdk::Pixbuf> MyExpander::disabledPBuf;
|
||||
|
Reference in New Issue
Block a user