Thread: Looping in DLLs
View Single Post
Old 05-04-2021, 04:56 AM   #9
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,968
Default

Quote:
Originally Posted by mschnell View Post
Does the appropriate library (WDL ?) not provide OS independent means for save inter-Thread communication (including sending to the main event thread queue) ?
SWELL imitates a Win32-like event queue on macOS and Linux. Not quite 1:1 but close enough (eg. PostMessage works across threads but SendMessage doesn't because it always runs the window proc in the caller thread).

(SWELL and WDL together also provide some generic thread synchronization utilities (mutex, event...), but those have std equivalents anyway.)

Last edited by cfillion; 05-04-2021 at 05:11 AM.
cfillion is offline   Reply With Quote