http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55741



--- Comment #5 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-12-20 12:11:43 
UTC ---

(In reply to comment #4)

> The point of http://gcc.gnu.org/viewcvs?view=revision&revision=193769 was that

> std::this_thread::sleep_for() is always available, even without

> --enable-libstdcxx-time=yes, so the default configuration needs to bootstrap.



Well, patch has one issue about used type.  Sleep expects 'unsigned long' as

argument.  Rest of suggested patch works.  The reason I mentioned --enable

option is that nanosleep isn't detected proper by configure test in case that

nanosleep is a function provided by POSIX-library pthread.

Nevertheless the hole thread-layer of cxx is one mingw just available together

with POSIX-library - and libwinpthread provides a cancel-able variant of

nanosleep.

Reply via email to