File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,16 @@ impl Thread {
121
121
rtassert ! ( wait_error. kind( ) == io:: ErrorKind :: WouldBlock ) ;
122
122
}
123
123
124
+ /// SGX should protect in-enclave data from the outside (attacker),
125
+ /// so there should be no data leakage to the OS,
126
+ /// and therefore also no 1-1 mapping between SGX thread names and OS thread names.
127
+ ///
128
+ /// This is why the method is intentionally No-Op.
124
129
pub fn set_name ( _name : & CStr ) {
125
- // FIXME: could store this pointer in TLS somewhere
130
+ // Note that the internally visible SGX thread name is already provided
131
+ // by the platform-agnostic (target-agnostic) Rust thread code.
132
+ // This can be observed in the [`std::thread::tests::test_named_thread`] test,
133
+ // which succeeds as-is with the SGX target.
126
134
}
127
135
128
136
pub fn sleep ( dur : Duration ) {
You can’t perform that action at this time.
0 commit comments