user/gcompat: Need wrapper for pthread_yield
Bugzilla ID | 343 |
Reporter | Hal G |
Assignee | A. Wilcox (awilfox) |
Reported | 2020-08-08 21:10:17 -0500 |
Modified | 2020-09-22 22:49:55 -0500 |
Status | IN_PROGRESS |
Version | 1.0-RC1 |
Hardware | Adélie Linux / Intel x86 (64-bit) |
Importance | --- / major |
Package(s) | gcompat |
Description
OVERVIEW
Since pthread_yield is not supported in the standard library, some programs do not link or fail at runtime.
BACKGROUND
This was discovered when trying to run the VirtualBox service script.
SOLUTION
sched_yield() appears to be compatible with pthread_yield(), so a wrapper in the gcompat library might be sensible.