nanogui: Thread-safety, wrapping globals in structs, RTEMS


Previous by date: 21 Dec 2000 00:29:10 -0000 Re: Thread-safety, wrapping globals in structs, RTEMS, Greg Haerr
Next by date: 21 Dec 2000 00:29:10 -0000 Re: size?, LC. Chang
Previous in thread: 21 Dec 2000 00:29:10 -0000 Re: Thread-safety, wrapping globals in structs, RTEMS, Greg Haerr
Next in thread:

Subject: Re: Thread-safety, wrapping globals in structs, RTEMS
From: "Jason C. Garcowski" ####@####.####
Date: 21 Dec 2000 00:29:10 -0000
Message-Id: <Pine.LNX.4.10.10012201730550.11913-100000@cx111693-f.chnd1.az.home.com>

On Wed, 20 Dec 2000, Greg Haerr wrote:

> Use
>     LOCK(mutex)
> and
>     UNLOCK(mutex)
> 

I don't know anything about the internals of microwindows or nano-X or
anything, so take this thought with a grain of salt.  Wouldn't it be
better to use rwlocks?  They exist in the thread.h library in solaris, but
linux uses pthreads, hence no thread.h.  However read/write locks can be
emulated using multiple semaphores, correct?  Do you think that'd be worth 
the effort, or no?  Do rwlocks exist natively on the other platforms
supported by microwindows & nano-X?  Just a thought.

jason


Previous by date: 21 Dec 2000 00:29:10 -0000 Re: Thread-safety, wrapping globals in structs, RTEMS, Greg Haerr
Next by date: 21 Dec 2000 00:29:10 -0000 Re: size?, LC. Chang
Previous in thread: 21 Dec 2000 00:29:10 -0000 Re: Thread-safety, wrapping globals in structs, RTEMS, Greg Haerr
Next in thread:


Powered by ezmlm-browse 0.20.