Skip to content

Commit

Permalink
options/posix: Implement better pthread_getcpuclockid stub
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwinci committed Oct 23, 2023
1 parent 0122f95 commit a436fd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions options/posix/generic/pthread-stubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,7 @@ int pthread_rwlock_unlock(pthread_rwlock_t *rw) {
}

int pthread_getcpuclockid(pthread_t, clockid_t *) {
__ensure(!"Not implemented");
__builtin_unreachable();
mlibc::infoLogger() << "mlibc: pthread_getcpuclockid() always returns ENOENT"
<< frg::endlog;
return ENOENT;
}

0 comments on commit a436fd9

Please sign in to comment.