comparison win32-mingw/include/kj/thread.h @ 149:279b18cc7785

Update Win32 capnp builds to v0.6
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 23 May 2017 09:16:54 +0100
parents 38d1c0e7850b
children
comparison
equal deleted inserted replaced
148:b4bfdf10c4b3 149:279b18cc7785
48 // Send a Unix signal to the given thread, using pthread_kill or an equivalent. 48 // Send a Unix signal to the given thread, using pthread_kill or an equivalent.
49 #endif 49 #endif
50 50
51 void detach(); 51 void detach();
52 // Don't join the thread in ~Thread(). 52 // Don't join the thread in ~Thread().
53 //
54 // TODO(soon): Currently broken: the thread uses the Thread objects during its execution; instead
55 // the Thread object and the thread itself will need to share a refcounted object.
56 53
57 private: 54 private:
58 struct ThreadState { 55 struct ThreadState {
59 Function<void()> func; 56 Function<void()> func;
60 kj::Maybe<kj::Exception> exception; 57 kj::Maybe<kj::Exception> exception;