Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Vive l'amour" Message-Id: <200211270651.gAR6pinI006518@alumni.csie.nctu.edu.tw> Subject: Why not export pthread_getsequence_np in cygwin1.dll? To: cygwin AT cygwin DOT com Date: Wed, 27 Nov 2002 14:51:44 +0800 (CST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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/