| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | OS/2, Watcom 10.0, threads & stacks |
Hello Mikko, On Aug 17 22:04 96, Mikko Hyvarinen of 2:229/229.5 wrote: MH> stack = (char *) malloc(STACK_SIZE); MH> tid = _beginthread(child, stack, STACK_SIZE, args); does WATCOM really require to pass a stack here? neither Borland nor IBM require this. (only 16bit OS/2 compilers like MS-C6.0a require it, since 16bit DosCreateThread requires a stack pointer). MH> ... do I have to free the stack myself or does the runtime MH> library do it? for the 16bit compilers you have to free the stack. MH> Question 2: Can I use the thread ID's returned by MH> _beginthread with the OS/2 DosWaitThread call? mh. if its not documented in your compilers doc you have to guess. _beginthread is a function implemented by WatCom. this is not a standard function. For IBM and Borland : you can use it. (so i would guess : yes). WARPED!, Mario --- Msgedsq/2 2.2e* Origin: LC/32 Development Team-Vienna-Austria (2:310/14.11) SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1 @PATH: 310/14 1 24/999 888 396/1 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.