diff --git a/Doc/Manual/Python.html b/Doc/Manual/Python.html index dfb38e942..c0a7911d1 100644 --- a/Doc/Manual/Python.html +++ b/Doc/Manual/Python.html @@ -136,6 +136,7 @@
  • Support for Multithreaded Applications @@ -6760,12 +6761,70 @@ will not be able to run any other threads, even if the wrapped C/C++ code is wai
  • The threads module option in the *.i template file: -
    %module("threads"=1)
    +
    %feature("nothread") method;
    +
  • + + +
  • You can disable thread support for a given method: +
    %module("threads"=1)
    or
    %nothread method;
    +
  • +
  • You can partially disable thread support for a given method: +
  • +

    36.13.2 Multithread Performance

    +

    + For the curious about performance, here are some numbers for the profiletest.i test, + which is used to check the speed of the wrapped code: +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Thread ModeExecution Time (sec)Comment
    Single Threaded9.6no "-threads" option given
    Fully Multithreaded15.5"-threads" option = 'allow' + 'block'
    No Thread block12.2only 'allow'
    No Thread Allow13.6only block'
    + +

    + Fullly threaded code decreases the wrapping performance by + around 60%. If that is important to your application, you + can tune each method using the different 'nothread', + 'nothreadblock' or 'nothreadallow' features as + needed. Note that for some methods deactivating the + 'thread block' or 'thread allow' code is not an option, + so, be careful. +

    +