Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Sun, 13 Oct 2002 13:49:42 +0400
From: egor duda <deo@logos-m.ru>
Reply-To: egor duda <cygwin@cygwin.com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <147760973461.20021013134942@logos-m.ru>
To: Andrew Lynch <lynchaj@yahoo.com>
CC: cygwin@cygwin.com
Subject: Re: pthreads in YahooPOPs
In-Reply-To: <20021013011938.9273.qmail@web11501.mail.yahoo.com>
References: <20021013011938.9273.qmail@web11501.mail.yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi!

Sunday, 13 October, 2002 Andrew Lynch lynchaj@yahoo.com 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:deo@logos-m.ru 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/

