This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug in definition for pthread_cleanup_push


On Sun, 23 Sep 2001, Robert Collins wrote:

> ----- Original Message -----
> From: "Marcus Westerlund" <marcus@cs.umu.se>
> To: <cygwin@cygwin.com>
> Sent: Friday, September 21, 2001 5:49 AM
> Subject: bug in definition for pthread_cleanup_push
>
>
> > cygwin 1.3.3-2: file pthread.h: line 104:
> >
> > typedef void __cleanup_routine_type (void *);
> >
> > should be:
> >
> > typedef void (*__cleanup_routine_type) (void *);
> >
> > otherwice it isn't defined as function pointer
>
> It's being defined as a function type, not a pointer to a function type.
> What error/symptom are you seeing that makes you want/need to change
> this?
>
> Rob
>


I'm trying to get licq to compile and run and I get:

../../licq-1.0.3/src/icqd-threads.cpp: In function `void *
ProcessRunningEvent_Server_tep(void *)':
../../licq-1.0.3/src/icqd-threads.cpp:65: function `void
__cleanup_routine(void *)' is initialized like a variable

icqd-threads.cpp:

...

#if ICQ_VERSION == 5
  // Make sure we are the next ack in line
  pthread_cleanup_push( (void (*)(void *))&pthread_mutex_unlock,
&d->mutex_serverack);
  pthread_mutex_lock(&d->mutex_serverack);
  while (e->m_nSequence > (unsigned short)(d->m_nServerAck + 1))
  {
    pthread_cond_wait(&d->cond_serverack, &d->mutex_serverack);
  }
  pthread_cleanup_pop(1);
#endif

...


marcus@cs.umu.se || macce@acc.umu.se || mze@cyberspace.org
-----------------------------------------------------------
  main(k){float i,j,r,x,y=-16;while(puts(""),y++<15)for(x
  =0;x++<84;putchar(" .:-;!/>)|&IH%*#"[k&15]))for(i=k=r=0;
  j=r*r-i*i-2+x/25,i=2*r*i+y/10,j*j+i*i<11&&k++<111;r=j);}


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]