Re: What is a prototype of microsofts CRITICAL_SECTION in Gtkmm



Am Freitag, den 19.06.2009, 14:21 +0200 schrieb Dimitri Holz:
> Does anybody know whether in Gtkmm something like a CRITICAL_SECTION
> (windows.h) exist?

The POSIX equivalent to a critical section is a mutex.  glibmm wraps
gthread, which in turn offers a POSIX-like threading API on both Unix
and Windows systems.

In short, you can use Glib::Mutex from glibmm.

As a general note, I cannot emphasize strongly enough that reading a
good book on threaded programming and POSIX threads in particular is
absolutely essential when it comes to coding with threads.

--Daniel




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]