Enable shared memory && add pthread support (#282)
This commit is contained in:
@ -24,14 +24,14 @@ int os_mutex_destroy(korp_mutex *mutex)
|
||||
return BHT_OK;
|
||||
}
|
||||
|
||||
void os_mutex_lock(korp_mutex *mutex)
|
||||
int os_mutex_lock(korp_mutex *mutex)
|
||||
{
|
||||
sgx_thread_mutex_lock(mutex);
|
||||
return sgx_thread_mutex_lock(mutex);
|
||||
}
|
||||
|
||||
void os_mutex_unlock(korp_mutex *mutex)
|
||||
int os_mutex_unlock(korp_mutex *mutex)
|
||||
{
|
||||
sgx_thread_mutex_unlock(mutex);
|
||||
return sgx_thread_mutex_unlock(mutex);
|
||||
}
|
||||
|
||||
int os_cond_init(korp_cond *cond)
|
||||
|
||||
Reference in New Issue
Block a user