Hi! Sunday, 13 October, 2002 Andrew Lynch [EMAIL PROTECTED] wrote:
AL> http://sourceforge.net/projects/yahoopops AL> on Cygwin but have run into a problem with pthreads. AL> The lines below do not compile even though Cygwin AL> supports pthreads and pthread.h is included in the AL> header file. AL> lock.__m_reserved = 0; AL> lock.__m_count = 0; AL> lock.__m_owner = 0; AL> lock.__m_kind = PTHREAD_MUTEX_TIMED_NP; AL> lock.__m_lock.__status = 0; AL> lock.__m_lock.__spinlock = __LT_SPINLOCK_INIT; AL> Does anyone know why these pthread commands(?) are not AL> supported or won't compile? The project you're talking about is using non-portable method of dealing with pthreads. Pthread interface doesn't specify an internal structure of pthread primitives, so their actual implementation may vary (and does vary) between different systems. You should ask YahooPOPs people to use portable constructs so that their code can be compiled on any system which supports pthread interface. Egor. mailto:[EMAIL PROTECTED] ICQ 5165414 FidoNet 2:5020/496.19 -- 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/