Implement pthread mutexes as no-ops

This commit is contained in:
avdgrinten 2015-12-08 00:29:15 +01:00
parent 0da6446ce7
commit ed5ccb1d20

View file

@ -27,19 +27,19 @@ int pthread_join(pthread_t pthread, void **result) {
int pthread_mutex_init(pthread_mutex_t *__restrict mutex,
const pthread_mutex_attr_t *__restrict attr) {
__ensure(!"Not implemented");
__builtin_unreachable();
// TODO: we need proper mutexes
return 0;
}
int pthread_mutex_lock(pthread_mutex_t *mutex) {
__ensure(!"Not implemented");
__builtin_unreachable();
// TODO: we need proper mutexes
return 0;
}
int pthread_mutex_unlock(pthread_mutex_t *mutex) {
__ensure(!"Not implemented");
__builtin_unreachable();
// TODO: we need proper mutexes
return 0;
}
int pthread_mutex_destroy(pthread_mutex_t *mutex) {
__ensure(!"Not implemented");
__builtin_unreachable();
// TODO: we need proper mutexes
return 0;
}