ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> c++-sig
c++-sig
Re: [C++-sig] Re: Boost.Python and threads
by Pierre Barbier de Reuille other posts by this author
Oct 6 2003 7:08AM messages near this date
[C++-sig] Re: Boost.Python and threads | Re: [C++-sig] Re: Boost.Python and threads
Le sam 04/10/2003 à 00:28, David Abrahams a écrit :
>  
>  Sorry it took so long to reply Pierre; I was really hoping someone
>  else (like Lijun) would answer.
>  
>  Anyway, I don't have an implementation of multithreading support, at
>  least not yet.
>  
>  THe best way to safely unblock threads that I know of is to write a
>  thin wrapper around your function which uses Py_BEGIN_ALLOW_THREADS
>  and Py_END_ALLOW_THREADS around a call to the real function.
>  
>  HTH,

Well, thanks, I think I'll use this solution for the 'all fonctions are
non-blocking' is not good for me :)

-- 
Pierre Barbier de Reuille

INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Boulevard de la Lironde
34398 MONTPELLIER CEDEX 5, France

tel   : (33) 4 67 61 65 77    fax   : (33) 4 67 61 56 68 


_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
Pierre Barbier de Reuille
Lijun Qin
David Abrahams
Pierre Barbier de Reuille
Niall Douglas
David Abrahams
Joel Gerard
Joel Gerard

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved