tfigure out which thread implementation to use - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f6c9a57869036b93e912cb333057d6fc706ea4df
 (DIR) parent 5093c3fa40717e78b0a63955640a8ac9071b5c07
 (HTM) Author: rsc <devnull@localhost>
       Date:   Fri, 22 Oct 2004 18:46:18 +0000
       
       figure out which thread implementation to use
       
       Diffstat:
         A src/libthread/thread.sh             |      15 +++++++++++++++
       
       1 file changed, 15 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/libthread/thread.sh b/src/libthread/thread.sh
       t@@ -0,0 +1,15 @@
       +#!/bin/sh
       +
       +if [ `uname` = Linux ]
       +then
       +        case "`uname | awk '{print $3}'`" in
       +        *)
       +                echo Linux-clone
       +                ;;
       +        2.[6789]*)
       +                echo pthread
       +                ;;
       +        esac
       +else
       +        echo pthread
       +fi