Tag Archives: locking

CIS: “Protecting” code in stead of data

The Windows API contains a synchronization primitive that is a mutual exclusion device, but is also a colossal misnomer. I mean, of course, the CRITICAL_SECTION.

Posted in Common Issues with Synchronization | Tagged , | Comments Off on CIS: “Protecting” code in stead of data

CIS: Lock Leaks

The two most popular threading APIs, the Windows API and pthreads, both have the same basic way of locking and unlocking a mutex — that is, with two separate functions. This leaves the code prone to lock leak: the thread … Continue reading

Posted in Common Issues with Synchronization | Tagged , | Comments Off on CIS: Lock Leaks

Critical sections – of what?

a glass of water
may sometimes have a storm, but
blizzards there are rare Continue reading

Posted in C & C++, Software Design | Tagged , | Comments Off on Critical sections – of what?

Recursive Locking Is Evil, or is it?

recursive locking:
winter’s way of saying “yes”,
to summer’s loud “no” Continue reading

Posted in Opinions, Software Design | Tagged | Comments Off on Recursive Locking Is Evil, or is it?