More tweaks to threads 1.37, by Jerry D. Hedden
[p5sagit/p5-mst-13.2.git] / ext / threads / threads.pm
index bec14b6..6564359 100755 (executable)
@@ -438,7 +438,7 @@ strongly discouraged.
 
 If C<exit()> really is needed, then consider using the following:
 
-    threads->exit() if $threads::threads;   # Thread friendly
+    threads->exit() if threads->can('exit');   # Thread friendly
     exit(status);
 
 =item use threads 'exit' => 'thread_only'