Alexandre Julliard wrote:

Christian Costa <[EMAIL PROTECTED]> writes:



+static int npfd;
+static int pfd_array_size = 0;
+static struct pollfd *pfd = NULL;



This isn't thread-safe.


The function that uses them is a timer callback.

Why don't you simply allocate the array in the
function and free it when you are done?



Well, I intended, in later patches, to update the poll fds when opening or closing devices and thus
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





Reply via email to