The lack of support for concurrency primitives like this makes it difficult to write cross-platform code. The implementation should be trivial.