Search found 2 matches

by freedmo
Tue Jan 15, 2013 5:07 pm
Forum: Support and Development
Topic: [love.thread] Communication between thread and main.lua
Replies: 3
Views: 3016

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...
by freedmo
Tue Jan 15, 2013 2:33 am
Forum: Support and Development
Topic: [love.thread] Communication between thread and main.lua
Replies: 3
Views: 3016

[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...