I've atached to it with gdb to find out, that it starts consuming memory and cpu while it is Sleeping!
That does'nt sound right - are you sure you're looking at the right thread ?
Sometimes I think gdb gets confused around threads.
the gwthread_sleep function, in the line where it actually
sleeps:
ret = poll(&pollfd, 1, milliseconds);
(line 750 in my case)
Because of i've not yet done much with the threadding
stuff, can somebody help me on that point?
What kind of file does it poll?
It is, as far as I remember, polling the read end of a pipe(). The logic
being that you can wake up the thread using gwthread_wakeup() by writing to
the write end of the pipe().
What could go wrong here?
Not much, really.
Tia, Wilfried Goesgens
Title: RE: bearerbox doing mysterious things in gwthreadsleep
- bearerbox doing mysterious things in gwthreadsleep Wilfried Goesgens
- RE: bearerbox doing mysterious things in gwthreadsl... Paul Keogh
- Re: bearerbox doing mysterious things in gwthre... Wilfried Goesgens
- Re: bearerbox doing mysterious things in gwthre... Wilfried Goesgens
- Re: bearerbox doing mysterious things in gw... Wilfried Goesgens
- Re: bearerbox doing mysterious things i... Alexander Malysh
- Re: bearerbox doing mysterious thi... Wilfried Goesgens
