panz3r Posted June 21, 2013 Share Posted June 21, 2013 Is it possible to use multithreading inside C++ applications made with leadwerks ? If yes are there any guidelines/limitations/recommendations/examples/api (basically something about) ? In before i am asked if know anything about subject and why i need this etc: i have experience with possix threads under c in linux. As pretty much every machine today have more than 1 core (even the poor atom have hyperthreading) i think this is a valid point. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted June 21, 2013 Share Posted June 21, 2013 See the command line here about Mutual Exclusives (semphores) http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/mutex/ Quote Link to comment Share on other sites More sharing options...
Josh Posted June 21, 2013 Share Posted June 21, 2013 It also uses multithreading extensively in internal routines. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
panz3r Posted June 21, 2013 Author Share Posted June 21, 2013 @Aggror: thank you, that asnwer my questions. @Josh:Thank you. is there anything that is prohibited to call from threads (i supose engine itself is not thread safe). What i have in mind is to use on 1 thread the networking, on another the game logic and on 3rd the game engine calls. Quote Link to comment Share on other sites More sharing options...
Furbolg Posted June 21, 2013 Share Posted June 21, 2013 I guess also LE itself is not threadsafe but you can make calls from the mainthread (int winmain) and all other stuff on other threads. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.