Help for this page

Select Code to Download


  1. or download this
    #include <pthread.h>
    #include "EXTERN.h"
    ...
            
            void *rv;
            pthread_join(tid, &rv);
    
  2. or download this
    package My;
    
    ...
    XSLoader::load('My', $VERSION);
    
    1;
    
  3. or download this
    use ExtUtils::MakeMaker;
    
    ...
        VERSION_FROM   => 'lib/My.pm',
        LIBS           => ['-lpthread'],
    );
    
  4. or download this
    use blib;
    use My;
    
    My::test_thread("Just another XS hacker");