[WINEALSA] Add Midi IN support (take 3)
titan.costa at wanadoo.fr
Mon Jan 12 17:01:10 CST 2004
Alexandre Julliard wrote:
>Christian Costa <titan.costa at wanadoo.fr> 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.
More information about the wine-devel