delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/27/01:52:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <cfliu AT csie DOT nctu DOT edu DOT tw>
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


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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019