Csound Csound-dev Csound-tekno Search About

[Cs-dev] FLTK threading issue for Csound 5

Date2005-01-30 14:12
Fromramsdell@mitre.org (John D. Ramsdell)
Subject[Cs-dev] FLTK threading issue for Csound 5
A search of the bug list for FLTK shows that FLTK itself is not thread
safe in the same sense that libcsound is not.  The analog of fltkRun
is fl_ask.  This function calls Fl::wait, but it shouldn't if fl_ask
is called from some thread other than the main thread.

What is troubling for Csound 5 is this: the bug report includes an
entry saying that Windows requires that all windows be created in the
same thread.  If true, this means that when FLrun is executed, it some
how has to get the main thread to create its windows.  How do we
design a software bus or library interface that meets this
requirement?

I'm going to add information I've gathered to the bug report, and will
report back if and when more news is available.

John

STR #675

Application:    
Status: 4 - Pending
Priority:       2 - Low, e.g. a documentation error or undocumented side-effect
Scope:  3 - Applies to all machines and operating systems
Subsystem:      Core Library
Summary:        All functions in fl_ask.H is not thread safe (using fltk thread model)
Version:        1.1.6
Created By:     rus.soyuzkt.od
Assigned To:    mike

mike
08:12 Dec 28, 2004      I'm not sure there is anything we can do -
most systems don't allow multiple threads to create windows, etc. -
that has to happen from a single thread (typically the main thread to
be compatible with Windows)

What OS + compiler are you using?

http://www.fltk.org/doc-2.0/html/group__multithreading.html


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net