justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: I read CreateThread leaks C-runtime memory, and should be used only when no C-runtime calls. Otherwise, _beginthreadex. Right?
Asked by Rodrigo (187.112.89.x) on March 9 2012, 11:27pm
Reply on March 17 2012, 5:16pm (edited at March 17 2012, 5:18pm):
    You mean calls that are generally not threadsafe anyway, and require use of TLS to be thread safe (like strtok())? Probably, but we don't use those runtimes. Also, if you link with the DLL CRT, it appears that it shouldn't leak anyway (since it gets DllMain calls on each new thread creation, etc).

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS