Christian Costa <[EMAIL PROTECTED]> writes:The function that uses them is a timer callback.
+static int npfd;
+static int pfd_array_size = 0;
+static struct pollfd *pfd = NULL;
This isn't thread-safe.
Well, I intended, in later patches, to update the poll fds when opening or closing devices and thusWhy don't you simply allocate the array in the function and free it when you are done?
avoid the retreival of poll fds each time.
But well, I can accomodate with your proposal at this for the moment since I don't known if this is usefull.
Bye, Christian