How about sig_sem (signal semaphore)?

How about sig_sem (signal semaphore)?

You should be able to use sig_sem native API. But it is recommended to use the signal APIs from OS Abstractor APIs to ensure that your code be portable.