Home | History | Annotate | only in /external/autotest/utils/named_semaphore
Up to higher level directory
NameDateSize
namedsem.c21-Aug-20182.3K
README21-Aug-2018494
setup.py21-Aug-2018253

README

      1 A simple module to expose the standard sem_* functions in Linux needed for
      2 using named semaphores. To compile, run:
      3 
      4 python setup.py build
      5 
      6 This will produce a namedsem.so file; put this file somewhere on your python
      7 import path and you should be able to import it as a module called namedsem.
      8 
      9 Before actually using this in python code, it really should be wrapped in
     10 something like the threading.Semaphore class. The module simply exposes the raw
     11 C functions with very little error checking.
     12