delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <20021013142256.95051.qmail@web11508.mail.yahoo.com> |
Date: | Sun, 13 Oct 2002 07:22:56 -0700 (PDT) |
From: | Andrew Lynch <lynchaj AT yahoo DOT com> |
Subject: | Re: pthreads in YahooPOPs |
To: | egor duda <deo AT logos-m DOT ru> |
Cc: | cygwin AT cygwin DOT com |
In-Reply-To: | <147760973461.20021013134942@logos-m.ru> |
MIME-Version: | 1.0 |
Egor, Thank you for the info! I will post it to the YahooPOPs for Linux development forum and see what happens. Hopefully, the author will see the issue and rewrite the code in a more portable manner. Can you deduce what the YahooPOPs author is trying to do? Would you suggest a more portable method I could look at? I will likely be finding or writing a replacement for this code section and appreciate any tips. Andrew Lynch --- egor duda <email deleted> wrote: > Hi! > > Sunday, 13 October, 2002 Andrew Lynch > 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. <email deleted> __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |