Re: [RFC] threading issues



* muppet <scott asofyet org> [2003-10-03 19:52]:
if so, what would be a reliable way to check?  something like

      use Config;
      $use_threads = $Config{config_args} =~ m/-Duse(i)?threads/;

    $ perl -MConfig -le'print "$a => $b" while ($a,$b) = each %Config' | grep thr       
    dynamic_ext => B [ ... ] threads threads/shared
    extensions => B [ ... ] threads threads/shared Errno
    d_old_pthread_create_joinable => 
    d_oldpthreads => 
    d_pthread_atfork => 
    d_pthread_yield => 
    i_machcthr => 
    i_pthread => define
    known_extensions => B [ ... ] threads threads/shared
    old_pthread_create_joinable => 
    use5005threads => 
    useithreads => 
    usethreads => 

I think $Config{usethreads} is the one you want.

what do you think?  will this help?

I would say Makefile.PL should ask the user, unless they have
something set in %ENV to force the decision one way or another
silently. (Ie ``GTK2_PERL_USE_THREADS=0 perl Makefile.PL'' or
something, which would also work with
``GTK2_PERL_USE_THREADS=0 perl -MCPAN -e'install Gtk2' ''.)

-- 
Regards,
Aristotle
 
"If you can't laugh at yourself, you don't take life seriously enough."



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]