File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
formatter/pattern_formatter/pattern Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ use crate::{
12
12
///
13
13
/// On Linux, this pattern writes the return value of `gettid` to the output.
14
14
///
15
- /// On macOS, this pattern writes the return value of `pthread_self` to the
16
- /// output.
15
+ /// On macOS and iOS , this pattern writes the return value of
16
+ /// `pthread_threadid_np` to the output.
17
17
///
18
18
/// On Windows, this pattern writes the return value of `GetCurrentThreadId` to
19
19
/// the output.
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ fn get_current_tid() -> u64 {
269
269
tid as u64
270
270
}
271
271
272
- #[ cfg( target_os = "macos" ) ]
272
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
273
273
#[ must_use]
274
274
fn get_current_tid_inner ( ) -> u64 {
275
275
let mut tid = 0 ;
You can’t perform that action at this time.
0 commit comments