Changeset 11055


Ignore:
Timestamp:
03/10/10 20:18:39 (2 years ago)
Author:
adamk
Message:

Because it's Wx that has the dependency on threads, load threads in the Wx module, rather than in some third module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx.pm

    r11025 r11055  
    88use FindBin; 
    99use File::Spec (); 
     10 
     11# Threading must be loaded before Wx loads 
     12use threads; 
     13use threads::shared; 
     14use Thread::Queue 2.11; 
    1015 
    1116# Load every exportable constant into here, so that they come into 
     
    2328our $VERSION = '0.58'; 
    2429 
    25 # Hard version lock on a new enough Wx.pm 
     30# Hard version lock on a new-enough Wx.pm 
    2631BEGIN { 
    27     unless ($Wx::VERSION 
    28         and $Wx::VERSION >= 0.91 ) 
    29     { 
     32    unless ( $Wx::VERSION and $Wx::VERSION >= 0.91 ) { 
    3033        die("Your Wx.pm is not new enough (need 0.91, found $Wx::VERSION)"); 
    3134    } 
Note: See TracChangeset for help on using the changeset viewer.