Csound Csound-dev Csound-tekno Search About

Re: Threads in Python , was Re: [Cs-dev] Python wrapper and SWIG problems

Date2006-02-04 12:45
From"Michael Gogins"
SubjectRe: Threads in Python , was Re: [Cs-dev] Python wrapper and SWIG problems
I can certainly run Csound in another thread from Python. The 
wxController2.py example in the Csound examples folder does it.

I also have a problem with yielding. When I am running CsoundVST, I can't 
run any FLTK widgets from the orc (although this used to be possible). But 
think that's probably a different problem from yours. Obviously the widgets 
do work when running Csound in a separate thread in a Python program. I 
think my problem is caused by contention between FLTK in the widgets and 
FLTK in CsoundVST.

Regards,
Mike

----- Original Message ----- 
From: "Victor Lazzarini" 
To: 
Sent: Saturday, February 04, 2006 5:27 AM
Subject: Threads in Python , was Re: [Cs-dev] Python wrapper and SWIG 
problems


> On another matter, but related, are there any ideas as how
> to
> allow a python app run csound in a another thread without
> locking
> out?
>
> Or any suggestions as to how to implement a yield scheme in
> python
> to allow for event processing during performance in a single
> thread?
>
> I'd be most interested to learn.
>
> Victor
>
>>
>> Thanks, Istvan!
>>
>> I will give it a try.  Word size and endianness are of
>> course the same.  The only problem might be the __THREAD__
>> macro.  Thanks for the heads-up on that one.
>>
>> Anthony
>>
>> Istvan Varga wrote on 2/4/06 5:05 AM:
>>
>> > The wrapper files generated by SWIG do not seem to be
>> > platform dependent, other than some optional thread
>> > locking stuff in python_interface_wrap.h that is enabled
>> > only if the macro __THREAD__ is defined. At least I can
>> create the wrapper sources on Linux and then compile for
>> > Win32 and the resulting modules seem to work.
>> > It is probably worth giving a try, especially if MacOS 9
>> > and X have the same word size and endianness.
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Do you grep
>> through log files for problems?  Stop!  Download the new
>> AJAX search engine that makes searching your log files as
>> easy as surfing the  web.  DOWNLOAD SPLUNK!
>> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=103432&bid=230486&dat=121642
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log 
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net