Y
Hacker News
new
|
ask
|
show
|
jobs
by
hun-nemethpeter
2021 days ago
Why do you use sometimes pthread primitives from <pthread.h> instead of standard <thread>, <mutex>, ... objects?
For example src/manager/DNSCache.h use std::mutex but src/kernel/Executor.h use pthread_mutex_t?
2 comments
Barenboim
2021 days ago
At first we used pthread only. But after the windows branch was added, we have to make it compatible with windows and standard <mutex> was used in the some shared codes. Codes in the "kernel" folder are for Linux only, and some of them are C.
link
cobalt
2021 days ago
maybe age of the project?
link