[PD-dev] clocks & threads

Miller Puckette mpuckett at man104-1.ucsd.edu
Wed Dec 4 02:31:57 CET 2002


Hi all,

I don't think clock_set is thread safe in Pd... it manipulates a linked
list (static) without locking other threads out of it....

cheers
Miller

On Tue, Dec 03, 2002 at 08:09:49PM +0100, Thomas Grill wrote:
> Hi,
> clock_set is supposed to be thread-safe (both in PD and xMax) - and it's one
> of the few.
> 
> In flext, it's used to implement a thread-safe message queue for sending
> messages to the objects' outlets.
> 
> best greetings,
> Thomas
> 
> ----- Original Message -----
> From: "Tom Schouten" <doelie at zzz.kotnet.org>
> To: <pd-dev at iem.kug.ac.at>
> Sent: Tuesday, December 03, 2002 7:57 PM
> Subject: [PD-dev] clocks & threads
> 
> 
> > hi list,
> >
> > is it safe to set a clock using clock_set outside of the main loop thread?
> > if not, is there a way to work around this?
> >
> > tom
> >
> >
> > _______________________________________________
> > PD-dev mailing list
> > PD-dev at iem.kug.ac.at
> > http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
> >
> >
> >
> 
> 
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.kug.ac.at
> http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev




More information about the Pd-dev mailing list