thread and linuxaudio

Jp Calderone exarkun at intarweb.us
Fri Jan 31 17:10:50 CET 2003


On Fri, Jan 31, 2003 at 11:58:04AM +0100, Attila Szabo wrote:
> Hi,
> 
> is linuxaudiodev thread-safe ?
> 
> I'm working on a curses interface for postgres and
> I have some multi-thread stuff for example a progress bar.
> It would be a good joke to play music while the query is running
> but it does'nt work.
> 

  If only one of your threads is making calls in linuxaudiodev, there
shouldn't be a problem.

  linuxaudiodev.c doesn't seem to have any BEGIN/END_ALLOW_THREADS blocks,
it might be safe to use from different threads simultaniously (though what
happens as a result probably depends on your sound driver).  I wouldn't
recommend doing this.

  Jp

-- 
C/C++/Java/Perl/Python/Smalltalk/PHP/ASP/XML/Linux (User+Admin)
Genetic Algorithms/Genetic Programming/Neural Networks
Networking/Multithreading/Legacy Code Maintenance/OpenGL
See my complete resume at http://intarweb.us:8080/
-- 
 up 46 days, 7:49, 5 users, load average: 0.55, 0.34, 0.16
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20030131/591caebb/attachment.pgp>


More information about the Python-list mailing list