Re: you are my only friend



Monserrat Seisdedos Nuñez wrote:
> And i am acceding to a shared memory zone. In solaris there is a library
> that includes some functions such as mutex_init, mutex_enter....., they are
> really easy to use.
> 
> In linux i'm using semaphores, and although they are working well, the use
> is more complex.
> 
> I'm looking for a mechanism for doing it simpler. 

Hi, glib has a portable set of mutex/thread/cond-var functions. You can
implement semaphores on top very easily:

	http://developer.gnome.org/doc/API/2.0/glib/glib-threads.html

HTH, John




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