1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
README Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
namedsem.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
setup.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README

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.