|
|
|
Threads - пример
|
|||
|---|---|---|---|
|
#18+
Пытаюсь запустить такой пример Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. Компилятор выдает следующее: '_beginthreadex' : cannot convert parameter 5 from 'void *' to 'unsigned int' Как поправить подскажите пожалуйста ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.02.2007, 11:19 |
|
||
|
Threads - пример
|
|||
|---|---|---|---|
|
#18+
автор Creates a thread. uintptr_t _beginthread( void( *start_address )( void * ), unsigned stack_size, void *arglist ); uintptr_t _beginthreadex( void *security, unsigned stack_size, unsigned ( *start_address )( void * ), void *arglist, unsigned initflag, unsigned *thrdaddr ); Parameters start_address Start address of a routine that begins execution of a new thread. For _beginthread, the calling convention is either __cdecl or __clrcall; for _beginthreadex, it is either __stdcall or __clrcall. stack_size Stack size for a new thread or 0. arglist Argument list to be passed to a new thread or NULL. security Pointer to a SECURITY_ATTRIBUTES structure that determines whether the returned handle can be inherited by child processes. If NULL, the handle cannot be inherited. Must be NULL for Windows 95 applications. initflag Initial state of a new thread (0 for running or CREATE_SUSPENDED for suspended); use ResumeThread to execute the thread. thrdaddr Points to a 32-bit variable that receives the thread identifier. Might be NULL, in which case it is not used. .... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.02.2007, 11:50 |
|
||
|
|

start [/forum/topic.php?fid=57&tid=2029427]: |
0ms |
get settings: |
5ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
179ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
34ms |
get tp. blocked users: |
1ms |
| others: | 210ms |
| total: | 461ms |

| 0 / 0 |
