delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/19/23:03:01

Message-Id: <200501200402.j0K42wmG025644@delorie.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net>
To: <cygwin AT cygwin DOT com>
Subject: RE: _beginthreadex
Date: Wed, 19 Jan 2005 22:00:23 -0600
MIME-Version: 1.0
In-Reply-To: <20050119130759.GC30059@cygbert.vinschen.de>
X-IsSubscribed: yes

> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com 
> [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Corinna Vinschen
> Sent: Wednesday, January 19, 2005 7:08 AM
> To: cygwin AT cygwin DOT com
> Subject: Re: _beginthreadex
> 
> On Jan 19 12:45, Dave Korn wrote:
> > > -----Original Message-----
> > > From: cygwin-owner On Behalf Of Kukuk Barbara
> > > Sent: 19 January 2005 11:49
> > 
> > > Hi,
> > > I would like to know how I can use _beginthreadex in my program.
> > > It is shown as an unresolved external. Do I have to link 
> a special 
> > > library?
> > > 
> > > Thanks for your help.
> > > 
> > > Barbara
> > 
> > 
> >   You can't use MSVCRT functions, such as _beginthreadex, under 
> > cygwin, but you can use the win32 equivalents such as 
> CreateThread and so on.
> 
> Or even better, use posix threads.
> 
> Corinna

This sort of begs the question: is it actually safe to use CreateThread() et
al when you're linking to Cygwin's CRT, or are you asking for trouble?  I'm
pretty sure I know the answer to this one, but just for posterity....

-- 
Gary R. Van Sickle


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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