Re: TMapFile:Semaphore

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon Jul 12 1999 - 19:05:45 MEST


Hi Thomas,

   have a look at:
http://root.cern.ch/root/html/src/TMapFile.cxx.html

I've not yet abstracted the semaphore handling in its own class, but the
TMapFile implementation will show you a cross platform way (Unix/NT) of doing
it.

Cheers, Fons.




Thomas Eberl wrote:
> 
> Dear rooters,
> 
> does somebody have a piece of code that could serve me as an example
> about the use of semaphores to synchronize writing and retrieving
> objects to and from Shared Memory ?
> 
> Many thanks in advance
> 
> Thomas
> --
> Thomas Eberl                       Phone: (+49 89) 289 1 2425
> Physik-Department E12, Technische Universitaet Muenchen
> James-Franck-Strasse *** 85748 Garching b. Muenchen
> Email: Thomas.Eberl@physik.tu-muenchen.de

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:35 MET