mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
Make thread_id a visible thing
Every thread now has a non-recyclable thread id. This will be an aid in debugging.
This commit is contained in:
@@ -82,4 +82,8 @@ void iothread_perform_on_main(std::function<void(void)> &&func);
|
||||
bool make_pthread(pthread_t *result, void *(*func)(void *), void *param);
|
||||
bool make_pthread(pthread_t *result, std::function<void(void)> &&func);
|
||||
|
||||
/// \returns a thread ID for this thread.
|
||||
/// Thread IDs are never repeated.
|
||||
uint64_t thread_id();
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user