Compiling with Pthreads
Steve Tregidgo
smst at bigfoot.com
Fri Dec 3 05:20:32 EST 1999
In article <826j58$oeb$1 at bgtnsc02.worldnet.att.net>,
"Brian Kennison" <bkenniso at postoffice.worldnet.att.net> wrote:
> thread_pthread.h looks like this:
>
> 110 typedef struct {
> 111 char locked; /* 0=unlocked, 1=locked */
> 112 /* a <cond, mutex> pair to handle an acquire of a
locked lock */
> 113 pthread_cond_t lock_released;
> 114 pthread_mutex_t mut;
> 115 }; pthread_lock;
>
It's been a while since I programmed regularly in C, but you appear to
have one too many semicolons in that code -- I would say that line 115
should look like:
} pthread_lock;
...ie without that first semicolon. (Granted, the error message
suggests that you're _missing_ a semi-colon, but what the hell.)
never-did-trust-C-error-messages-anyway-ly yrs,
Steve
--
-- Steve Tregidgo --
Developer for Business Collaborator
www.enviros.com/bc
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list