This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: _beginthreadex
- From: Kaz Kylheku <kaz at ashi dot footprints dot net>
- To: Kukuk Barbara <barbara dot kukuk at siemens dot com>
- Cc: cygwin at cygwin dot com
- Date: Wed, 19 Jan 2005 08:17:28 -0800 (PST)
- Subject: Re: _beginthreadex
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/