That requires linking with libpthread, which a single threaded program would not normally do. Otherwise, it's not a bad suggestion.