■ _beginthread, _beginthreadex

스레드(thread)를 만든다.

 

■ Syntax

uintptr_t _beginthread( // NATIVE CODE
   void( __cdecl *start_address )( void * ),
   unsigned stack_size,
   void *arglist
);
uintptr_t _beginthread( // MANAGED CODE
   void( __clrcall *start_address )( void * ),
   unsigned stack_size,
   void *arglist
);
uintptr_t _beginthreadex( // NATIVE CODE
   void *security,
   unsigned stack_size,
   unsigned ( __stdcall *start_address )( void * ),
   void *arglist,
   unsigned initflag,
   unsigned *thrdaddr
);
uintptr_t _beginthreadex( // MANAGED CODE
   void *security,
   unsigned stack_size,
   unsigned ( __clrcall *start_address )( void * ),
   void *arglist,
   unsigned initflag,
   unsigned *thrdaddr
);

 

■ Parameters

1) start_address : 스레드가 시작되는 곳의 주소(스레드 함수에 대한 주소값)

2) stack_size : 새로운 스레드를 위한 스택의 크기 또는 0

3) arglist : 인수의 목록 또는 NULL (스레드 함수로 전달할 인수)

4) security

5) initflag

6) thrdaddr

 

 

출처: http://msdn.microsoft.com/en-us/library/kdzttdcb(v=VS.90).aspx

'PROGRAMMING > api reference' 카테고리의 다른 글

[Function] InvalidateRect  (0) 2011.03.23
[Structure] TEXTMETRIC  (0) 2011.03.23
함수정리  (0) 2011.03.20
Posted by 마마필로 :