[Threading] Move stack bounds fetching into the threading library.

Fetching the current stack bounds is done using threading functions, so
should be in the threading library.

rdar://90776105
This commit is contained in:
Alastair Houghton
2022-05-06 10:59:48 +01:00
parent eb4c81d60e
commit b5c8b79556
12 changed files with 134 additions and 82 deletions

View File

@@ -61,6 +61,8 @@ inline bool threads_same(thread_id a, thread_id b) {
return ::pthread_equal(a, b);
}
stack_bounds thread_get_current_stack_bounds();
// .. Mutex support ..........................................................
using mutex_handle = ::pthread_mutex_t;