The Wikipedia page for File Descriptor
lists the following system calls:
- open(), open64()
- creat(), creat64()
- socket()
- accept()
- socketpair()
- epoll_create() (Linux only)
- pipe()
- signalfd() (Linux only)
- eventfd() (Linux only)
Are there any other methods on other platforms, especially on QNX
?
I have a thread which is monitoring a bunch of sockets with a poll()
call and receiving "Commands" from the sockets. Now I need to add the possibility to send such "Commands" from other threads running in the same process. I would like to avoid the overhead of writing into a pipe/socket within the same process if possible.
Can anyone think of somehow monitoring a conditional variable using poll()
for example?