Concurrently using POSIX and the libkos API
Concurrently using POSIX and the libkos API
In a thread that is created using Pthreads, you cannot use the following libkos
APIs:
- event.h, mutex.h, rwlock.h, semaphore.h, condvar.h
- thread.h, thread_api.h
- dma.h
- ports.h
- mmio.h
- irq.h
The following libkos
APIs can be used together with Pthreads (and other POSIX APIs):
- handle_api.h
- notice_api.h
- task.h, task_api.h
- cm_api.h, ns_api.h
- queue.h
POSIX interfaces cannot be used in threads that were created using the thread.h and thread_api.h APIs.
The syscalls.h API can be used in any threads that were created using Pthreads or the thread.h and thread_api.h APIs.
Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.