Re: [LAD] question about multithreaded externals in Pd

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: 'Robin Gareus' <robin@...>
Cc: <linux-audio-dev@...>
Date: Saturday, October 2, 2010 - 1:13 am

Many thanks for the clarification Robin, really appreciate it!

One more thing I realized, isn't the secondary thread effectively blocking the lock on the main thread because the mutex_lock is placed before the cond call or is this the right way to do it? Namely, should secondary thead have the following structure:

While loop {
mutex_lock
state cond <--this is where the thread supposedly waits (does this have to be "while" loop or a simple if will do as is the case in my code?)
do something
mutex_unlock
}
Thread exit

Ico

> -----Original Message-----

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] question about multithreaded externals in Pd, Ivica Ico Bukvic, (Sat Oct 2, 12:36 am)
Re: [LAD] question about multithreaded externals in Pd, Robin Gareus, (Sat Oct 2, 1:01 am)
Re: [LAD] question about multithreaded externals in Pd, Ivica Ico Bukvic, (Sat Oct 2, 1:13 am)
Re: [LAD] question about multithreaded externals in Pd, Robin Gareus, (Sat Oct 2, 1:24 am)