This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: confirm subscribe to cygwin-developers-digest at cygwin dot com


I have a very recent version of Cygwin and using the SIPP application. This calls nanosleep from within a thread.

Effectively , every second, the application

*         Creates a thread

*         Calls nanosleep 9 times.

*         Deletes the thread

And every second, according to windows task manager, it one more handle is being used. Eventually it runs out of resources and crashes.

If I comment out the call to nanosleep, the number of handles stay steady.

If the problem was just within nanosleep, the I would expect it to "leak" 9 handles every second, but it only one is leaked. So I'm assuming that it somehow. It's a combination of the thread and the calls to nanosleep.

Hence my question, is nanosleep thread safe?

Regards
Trefor Edwards 

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]