Daniel Sperry
Daniel Sperry

Reputation: 4491

Does lua command line support threads?

Is there a way to create threads in the default lua command line utility?

Upvotes: 5

Views: 238

Answers (2)

catwell
catwell

Reputation: 7046

As Bartek said there is no support for threads in stock Lua, but you can add thread support to the CLI thanks to the Lua Lanes library (see http://www.luteus.biz/Download/LoriotPro_Doc/LUA/LUA_For_Windows/lanes/index.html / https://github.com/LuaLanes )

Upvotes: 3

Bartek Banachewicz
Bartek Banachewicz

Reputation: 39370

No, "stock" build of Lua doesn't have support for threads at all. You can use your operating system forks to spawn more scripts, or stick to coroutines.

Upvotes: 4

Related Questions