I think the use of ordering here is irregular. In teaclave, there will be no simultaneous read and write operations to CALLBACK_FN, GLOBAL_HASH_BUFFER and GLOBAL_COND_BUFFER in a multi-threaded environment, only simultaneous reads to them occur, so I think Ordering::Relaxed can be used here. You can view, comment on, or merge this pull request online at:
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/425 -- Commit Summary -- * Fixed ordering -- File Changes -- M samplecode/localattestation/attestation/src/func.rs (6) M samplecode/psi/SMCServer/enclave/src/lib.rs (6) M samplecode/thread/enclave/src/lib.rs (6) -- Patch Links -- https://github.com/apache/incubator-teaclave-sgx-sdk/pull/425.patch https://github.com/apache/incubator-teaclave-sgx-sdk/pull/425.diff -- Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/425 You are receiving this because you are subscribed to this thread. Message ID: <apache/incubator-teaclave-sgx-sdk/pull/[email protected]>
