TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Russell Coker
date: 1995-01-28 21:15:04
subject: DosAllocThreadLocalMemory()

I have just read about the DosAllocThreadLocalMemory() API call.  I
wonder what the purpose of this is and whether the documentation on it is
correct.  The documentation states that up to 32 DWORDs of memory may be
allocated.  32DWORD == 128 bytes which is a lot less than the page size... 
Is this 128 bytes allocated in the same page as the TIB or something?
   Also what is the use of it?  What is the benefit of
DosAllocThreadLocalMemory() over having CHAR LocMem[128] in the thread
function?  Why would anyone bother with a special system call to get 128
bytes of local memory when using the stack is so much easier?


--- Maximus/2 2.02
* Origin: Multi - 61-3-739-7145 (3:633/363)
SEEN-BY: 12/2442 620/243 624/50 632/103 301 341 348 386 998 633/104 252 260
SEEN-BY: 633/363 371 373 379 634/384 635/301 502 503 636/100 638/100 640/820
SEEN-BY: 690/660 711/409 410 413 430 807 808 809 934 942 949 955 712/515
SEEN-BY: 713/888 800/1 7877/2809
@PATH: 633/363 260 371 635/503 632/348 711/409 808 809 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™.