2001-01-11 00:59:25 +01:00
|
|
|
/*
|
|
|
|
* msvcrt.dll thread functions
|
|
|
|
*
|
|
|
|
* Copyright 2000 Jon Griffiths
|
|
|
|
*/
|
|
|
|
#include "msvcrt.h"
|
|
|
|
|
2001-04-11 01:25:25 +02:00
|
|
|
#include "msvcrt/process.h"
|
|
|
|
|
2001-01-11 00:59:25 +01:00
|
|
|
DEFAULT_DEBUG_CHANNEL(msvcrt);
|
|
|
|
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
* _beginthreadex (MSVCRT.@)
|
|
|
|
*/
|
2001-04-10 23:16:07 +02:00
|
|
|
unsigned long _beginthreadex(void* sec,
|
|
|
|
unsigned int stack,
|
2001-04-11 01:25:25 +02:00
|
|
|
unsigned __stdcall (*start)(void*),
|
2001-04-10 23:16:07 +02:00
|
|
|
void* arg, unsigned int flag,
|
|
|
|
unsigned int* addr)
|
2001-01-11 00:59:25 +01:00
|
|
|
{
|
|
|
|
TRACE("(%p,%d,%p,%p,%d,%p)\n",sec, stack,start, arg,flag,addr);
|
|
|
|
/* FIXME */
|
|
|
|
return CreateThread( sec, stack, (LPTHREAD_START_ROUTINE)start, arg,flag,(LPDWORD)addr);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
* _endthreadex (MSVCRT.@)
|
|
|
|
*/
|
2001-04-10 23:16:07 +02:00
|
|
|
void _endthreadex(unsigned int retval)
|
2001-01-11 00:59:25 +01:00
|
|
|
{
|
|
|
|
TRACE("(%d)\n",retval);
|
|
|
|
/* FIXME */
|
|
|
|
ExitThread(retval);
|
|
|
|
}
|
|
|
|
|