Search found 2 matches
- Tue Jan 15, 2013 5:07 pm
- Forum: Support and Development
- Topic: [love.thread] Communication between thread and main.lua
- Replies: 3
- Views: 3159
Re: [love.thread] Communication between thread and main.lua
The main thread is called 'main'; by getting the thread (main_thread = love.thread.getThread()) inside main.lua (or anything inside that thread) you can then set a message there; by getting the 'main' thread from another thread (main_thread = love.thread.getThread('main')) you can then get the mess...
- Tue Jan 15, 2013 2:33 am
- Forum: Support and Development
- Topic: [love.thread] Communication between thread and main.lua
- Replies: 3
- Views: 3159
[love.thread] Communication between thread and main.lua
You can send data from one thread to the main program? Following the example from here: https://love2d.org/forums/viewtopic.php?f=5&t=9934 . It is no problem to get data from a thread. But I want to send data from the "main.lua" to the thread. If this is possible, if so how? Thank you...