[gtkmm] threadsystem

hi everyone,

does anyone know why glib2 does not have semaphores? what do you think to include it in gtkmm anyway (based on pthread as glib)?
the problem with the existing possibilities (mutexes and conditions) is that e.g. if a condition is signalled before another thread waits for the condition the other thread doesn't know that the condition has already been signaled.

another problem is that a condition doesn't know anything about how often it has been signaled.

i need exactly these behaviours in an application. trying to implement a semaphore with mutexes and conditions is impossible in my opinion because one can never mutex the variables like it is needed (i tried it already). additionally it is much more effort than to write a semaphore class based on pthread.

triendl klaus

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