Mercurial > hg > sv-dependency-builds
comparison win32-mingw/include/kj/thread.h @ 64:eccd51b72864
Update Win32 capnp builds to v0.6
author | Chris Cannam |
---|---|
date | Tue, 23 May 2017 09:16:54 +0100 |
parents | 37d53a7e8262 |
children |
comparison
equal
deleted
inserted
replaced
63:0f2d93caa50c | 64:eccd51b72864 |
---|---|
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; |