• Home
  • History
  • Annotate
  • only in /external/autotest/utils/named_semaphore/
NameDateSize

..23-Aug-20164 KiB

namedsem.c23-Aug-20162.3 KiB

README23-Aug-2016494

setup.py23-Aug-2016253

README

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