Sep 06, 2006

Emulating POSIX Semaphores

I need to use POSIX-like semaphores without actually using them in Microsoft Windows, due to don't want to add more dependencies to current project and currently have found their PInvoked version to use them in .NET and it seems to work, now based on the text found am trying to emulate POSIX Semaphore's behavior using Microsoft Win32 Semaphores. Seems quite difficult and I only have two days more to finish its implementation, will do it, have to.

I'm trying to quit smoking, but every time I party I smoke again, might be the habit, drinking and smoking are performed almost at same time.