Are there any more examples or tutorials available for using Common C++ ??
I looked at the demos in the demo directory, but I need some more info on using this lib, e.g. how can I make a thread respond to signals it receives ? OnSignal currently does not respond to any signal at all.
Thanks !
Jasper
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OnSignal should receive signals in some thread context, and this is the problem; the behavior of signals is not always well defined (especially in the pthread like implimentations used GNU/Linux and the actual standard), and is also not portable to win32. Rather than using signals, I think it would be better to use conditionals and other thread based objects to signal between threads.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Are there any more examples or tutorials available for using Common C++ ??
I looked at the demos in the demo directory, but I need some more info on using this lib, e.g. how can I make a thread respond to signals it receives ? OnSignal currently does not respond to any signal at all.
Thanks !
Jasper
OnSignal should receive signals in some thread context, and this is the problem; the behavior of signals is not always well defined (especially in the pthread like implimentations used GNU/Linux and the actual standard), and is also not portable to win32. Rather than using signals, I think it would be better to use conditionals and other thread based objects to signal between threads.