Enable shared memory && add pthread support (#282)

This commit is contained in:
Xu Jun
2020-06-15 19:04:04 +08:00
committed by GitHub
parent f4d4d69736
commit d98ab63e5c
41 changed files with 3081 additions and 289 deletions

View File

@ -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)