[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Non-blocking activateCDKEntry or an alternative
From: |
Marius Gavrilescu |
Subject: |
Non-blocking activateCDKEntry or an alternative |
Date: |
Fri, 29 Jun 2012 14:32:39 +0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Say I have a program which reads input from the user with a CDKENTRY
but which also wants to read commands from a socket.
Those commands update other CDK widgets
Unfortunately, activateCDKEntry(input, NULL) blocks until
the user enters RET TAB or ESC. Therefore if I let the user write
commands, I cannot read commands from the server
1. Is there anything similar to select/poll/epoll which lets me
wait for a CDKENTRY and for a file descriptor simultaneously?
2. If not, can I somehow tell activateCDKEntry to time out and
return NULL after some time?
3. If not, can I update and redraw a widget from a SIGIO handler
which interrupts activateCDKEntry?
4. If not, can I update and redraw a widget from a thread while
activateCDKEntry is running in another thread?
5. If not, can I make activateCDKEntry return NULL in the main thread
by running something in another thread?
6. If not, is there any other way to simultaneously wait
for input from a CDKENTRY and from a file descriptor?
--
Marius Gavrilescu
(main) Always do right. This will gratify some people and astonish the rest.
--Mark Twain
signature.asc
Description: Digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Non-blocking activateCDKEntry or an alternative,
Marius Gavrilescu <=