diff options
Diffstat (limited to 'src/core/thread.h')
| -rw-r--r-- | src/core/thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/thread.h b/src/core/thread.h index ee83b196..c3d5531e 100644 --- a/src/core/thread.h +++ b/src/core/thread.h @@ -82,4 +82,7 @@ extern void nni_thr_run(nni_thr *thr); // at all. extern void nni_thr_wait(nni_thr *thr); +// nni_thr_is_self returns true if the caller is the named thread. +extern bool nni_thr_is_self(nni_thr *thr); + #endif // CORE_THREAD_H |
