From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3217cceffc18ae86,start X-Google-Attributes: gidfee84,public From: sean levy Subject: re: problem with posix thread library Date: 1996/05/22 Message-ID: <31A3591A.41C6@paneer.ndim.edrc.cmu.edu>#1/1 X-Deja-AN: 156145962 content-type: text/plain; charset=us-ascii organization: n-dim group, engineering design research center, carnegie mellon u. mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.0b4 (X11; I; OSF1 V3.2 alpha) Deryk Barker wrote: > > Has anyone had any luck getting the pthreads library to run under > Digital Unix on an Alpha? [snip snip] > void *sleeping (void *sleep_time){ > printf("thread %d sleeping %d seconds ...\n", pthread_self(), SLEEP_TIME); ^^ ^^^^^^^^^^^^^^ > sleep (10); > printf("\nthread %d awakening\n", pthread_self()); ^^ ^^^^^^^^^^^^^^ > } > under osf/1 [at least as of 3.2c, which is what i'm running] pthread_t is a struct, not a pointer or integer. this is the worst of the interface incompatibilities between dec's implementation and all others i've seen so far, which don't hand structures around by value. cheers, --sean -- sean levy, sr. research programmer, n-dim group, edrc, carnegie mellon univ. | http://paneer.ndim.edrc.cmu.edu/Home/snl | +1 412 268 5215