Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  07 May 2009, Konstantin Olchanski, Info, RPC.SHM gyration 
    Reply  02 Jun 2009, Konstantin Olchanski, Info, RPC.SHM gyration 
       Reply  04 Jun 2009, Stefan Ritt, Info, RPC.SHM gyration 
    Reply  20 Nov 2009, Konstantin Olchanski, Info, RPC.SHM gyration 
Message ID: 589     Entry time: 04 Jun 2009     In reply to: 586
Author: Stefan Ritt 
Topic: Info 
Subject: RPC.SHM gyration 
> Right now, MIDAS does not have an abstraction for "local multi-thread mutex" (i.e. pthread_mutex & co) and mostly uses global semaphores 
> for this task (with interesting coding results, i.e. for multithreaded locking of ODB). Perhaps such an abstraction should be introduced?

Yes. In the old days when I designed the inter-process communication (~1993), there was no such thing like pthread_mutex (only under Windows). 
Now it would be time to implement this thing, since it then will work under Posix and Windows (don't know about VxWorks). But that will at least 
allow multi-threaded client applications, which can safely call midas functions through the RPC layer. For local thread-safeness, all midas 
functions have to be checked an modified if necessary, which is a major work right now, but for remote clients it's rather simple.
ELOG V3.1.4-2e1708b5