Re: _beginthreadex

2005-01-20 Thread Corinna Vinschen
On Jan 19 22:00, Gary R. Van Sickle wrote:
 Corinna Vinschen wrote:
  Or even better, use posix threads.
 
 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

What answer do you expect? ;-)

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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/



_beginthreadex

2005-01-19 Thread Kukuk Barbara
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


--
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/



RE: _beginthreadex

2005-01-19 Thread Dave Korn
 -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.

cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


--
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/



Re: _beginthreadex

2005-01-19 Thread Corinna Vinschen
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

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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/



Re: _beginthreadex

2005-01-19 Thread Kaz Kylheku
On Wed, 19 Jan 2005, Kukuk Barbara wrote:

 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?

This function is not a Win32 API, but a function in Microsoft Visual
Studio's C library.

Unlike UNIX-like systems, Windows does not have the equivalent of a C
library for providing run-time support to C programs (malloc, printf,
etc). C programming environments targetting Windows have to provide
their own.

_beginthreadex is a wrapper for CreateThread which routes the thread
through a startup function within the C library, where it can
initialize some thread-local storage specific to that library and
whatnot.


--
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/



RE: _beginthreadex

2005-01-19 Thread Gary R. Van Sickle
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Corinna Vinschen
 Sent: Wednesday, January 19, 2005 7:08 AM
 To: cygwin@cygwin.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/