This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Why not export pthread_getsequence_np in cygwin1.dll?
- From: "Vive l'amour" <cfliu at csie dot nctu dot edu dot tw>
- To: cygwin at cygwin dot com
- Date: Wed, 27 Nov 2002 14:51:44 +0800 (CST)
- Subject: Why not export pthread_getsequence_np in cygwin1.dll?
Hi, I noticed that pthread_getsequence_np() is implemented in Cygwin pthread.cc
but it is not exported in cygwin1.dll. Why not export it? Why I am asking so
is because cygwin's pthread_getsequence_np() in pthread.cc actually returns
Win32's native thread ID and this is very helpful in identifying threads
when debugging a multi-threaded application with GDB.
If exporting this function is not possible, can any of you tell me how to call
Win32 API in cygwin? I've tried to call GetCurrentThreadId() in my program but
ld failed to locate the symbol, even though I supplied it with a correct search
path for w32api. (-lkernel32)
Thanks you very much.
David.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/