So, I am porting a large C program into windows... and we are so very close to completion. Unfortunately this has to be done natively so things like SUA and Cygwin aren't an option.
we are using win32pthreads and Mingw to get this done
So one of the functions uses the sem_open cal which normally lives in semaphore.h and does so in win32pthreads, unfortunately after spending some time figuring out why it dies there I noticed that the implementation pretty much just returns an error... wonderful.
in either case; is there any direct alternative I can use in windows? or has anyone else ran into this issue before in windows. I am eyeballing sem_init and a little code finagling might be able to work.
We are using server 2008 to build.
any input is greatly appreciated.