allwinner_a64/android/external/autotest/utils/named_semaphore
2018-08-08 16:14:42 +08:00
..
namedsem.c upload android base code part2 2018-08-08 16:14:42 +08:00
README upload android base code part2 2018-08-08 16:14:42 +08:00
setup.py upload android base code part2 2018-08-08 16:14:42 +08:00

A simple module to expose the standard sem_* functions in Linux needed for
using named semaphores. To compile, run:

python setup.py build

This will produce a namedsem.so file; put this file somewhere on your python
import path and you should be able to import it as a module called namedsem.

Before actually using this in python code, it really should be wrapped in
something like the threading.Semaphore class. The module simply exposes the raw
C functions with very little error checking.