issue with love.thread

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
SiENcE
Party member
Posts: 792
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: issue with love.thread

Post by SiENcE »

You're right. I wish this explanation was in the wiki: -). I think that's essential when dealing with threads.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: issue with love.thread

Post by raidho36 »

I dunno, to me it's pretty self-evident that if you put more apples in a bin than you take out of it, it will eventually overflow.
User avatar
pgimeno
Party member
Posts: 3548
Joined: Sun Oct 18, 2015 2:58 pm

Re: issue with love.thread

Post by pgimeno »

I think what you need is use Channel:supply instead of Channel:push.
User avatar
SiENcE
Party member
Posts: 792
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: issue with love.thread

Post by SiENcE »

raidho36 wrote: Sat Mar 10, 2018 11:20 pm I dunno, to me it's pretty self-evident that if you put more apples in a bin than you take out of it, it will eventually overflow.
Yeah but i come from java, not c. So i thought love2d synchronises the threads itself, because there is no api for it nor anything mentioned in the wiki.
pgimeno wrote: Sun Mar 11, 2018 12:02 am I think what you need is use Channel:supply instead of Channel:push.
You are right. Thanks!
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 144 guests