Simple thread and synchronization support
[Support algorithms and datastructures]
|A mutex for mutual exclausion among several threads. More...|
|A lock as a scoped frontend for a mutex. More...|
|An event for synchronization. More...|
|An interface for objects that can be run by a thread. More...|
|Simple threads. More...|
This is very simplistic, just enough for parallel search engines. Do not mistake it for a full-fledged thread package.
If the platform supports threads, the macro GECODE_HAS_THREADS is defined. If threads are not supported, all classes are still available, but are noops with the exception of trying to create a new thread which will throw an exception.