Re: [libvirt] [PATCH v4 4/7] udev: Convert udevEventHandleThread to an actual thread routine

2017-10-05 Thread Erik Skultety
On Thu, Oct 05, 2017 at 02:54:36PM +0200, Erik Skultety wrote: > [...] > > > +while (1) { > > > +virMutexLock(&privateData->lock); > > > +while (privateData->nevents == 0 && !privateData->threadQuit) { > > > +if (virCondWait(&privateData->threadCond, > > > &privateD

Re: [libvirt] [PATCH v4 4/7] udev: Convert udevEventHandleThread to an actual thread routine

2017-10-05 Thread Erik Skultety
[...] > > +while (1) { > > +virMutexLock(&privateData->lock); > > +while (privateData->nevents == 0 && !privateData->threadQuit) { > > +if (virCondWait(&privateData->threadCond, &privateData->lock)) > > { > > +virReportSystemError(errno, "%s", > > +

Re: [libvirt] [PATCH v4 4/7] udev: Convert udevEventHandleThread to an actual thread routine

2017-09-20 Thread John Ferlan
On 09/18/2017 12:34 PM, Erik Skultety wrote: > Adjust udevEventHandleThread to be a proper thread routine running in an > infinite loop handling devices. Also introduce udevEventThreadData > private structure. > Every time there's and incoming event from udev, udevEventHandleCallback > only incre

[libvirt] [PATCH v4 4/7] udev: Convert udevEventHandleThread to an actual thread routine

2017-09-18 Thread Erik Skultety
Adjust udevEventHandleThread to be a proper thread routine running in an infinite loop handling devices. Also introduce udevEventThreadData private structure. Every time there's and incoming event from udev, udevEventHandleCallback only increments the number of events queuing on the monitor and sig