incubator-teaclave-sgx-sdk icon indicating copy to clipboard operation
incubator-teaclave-sgx-sdk copied to clipboard

Naming of Mutex

Open ShaleXIONG opened this issue 3 years ago • 1 comments

Is there a particular reason the mutex is named SgxMutex rather than the standard name Mutex from the std? The name difference is particularly annoying when we want to use the same code compile to a standard Linux process and sgx application.

ShaleXIONG avatar Aug 13 '21 09:08 ShaleXIONG

Mutex roots at os kernel provided primitives (like futex). But SgxMutex does not root at it. It's completely two different implementation with different assumptions (but with similar APIs)

dingelish avatar Aug 13 '21 17:08 dingelish