File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Top Open diff view settings Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Top Open diff view settings Original file line number Diff line number Diff line change @@ -121,8 +121,16 @@ impl Thread {
121121 rtassert ! ( wait_error. kind( ) == io:: ErrorKind :: WouldBlock ) ;
122122 }
123123
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.
124129 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.
126134 }
127135
128136 pub fn sleep ( dur : Duration ) {
You can’t perform that action at this time.
0 commit comments