mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user