RE: bearerbox doing mysterious things in gwthreadsleep

"Paul Keogh" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.