Is there a cross-platform C signal library available(better open-sourced)?

I'm recently working on a project in which I need to port a portion of Linux C code to Windows. The code uses Linux signal mechanism(I mean the "sigaction", "sigprocmast", etc...) which is not well supported on Windows.

Is there a C/C++ library available that implements the cross-platform signal mechanism(better open-sourced)? Currently I just need the library to support Linux & Windows.

I think this question would also make sense to you because you might be given a similar task some day.

One of my colleagues told me that ACE is a powerful library that implements cross-platform signal mechanism perfectly, but he said it's a huge library and would really take some time to study it. My project doesn't give me too much time so I'm trying to look for a light-weight and easy-to-study signal library. (Hmm.. well, if the libraries you know about are all pretty big, please also tell me. :-)

I've done a lot of research on this subject with Google but I couldn't find what I want. Here is what I have done so far:

  1. Searched in Stackoverflow.com. People asked a lot of details about how to use signals in Linux but nobody seemed to ask about cross-platform signal implementation.

  2. Or, in Stackoverflow.com, people asked a mechamism called "signal-slot". I don't think that is what I need.

  3. Searched in entire google. I tried the key words "C signal "cross platform" OR cross-platform -game -python -gui -audio -digital -analysis -slot -image -processing -socket -time -directmedia" but couldn't find what I want.

Please help! Thanks!

5
задан yaobin 23 February 2011 в 14:49
поделиться