Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 14 Oct 2002 11:43:21 +0400 From: egor duda Reply-To: egor duda Organization: deo X-Priority: 3 (Normal) Message-ID: <94891653.20021014114321@logos-m.ru> To: Andrew Lynch CC: cygwin AT cygwin DOT com Subject: Re: pthreads in YahooPOPs In-Reply-To: <20021013142256.95051.qmail@web11508.mail.yahoo.com> References: <20021013142256 DOT 95051 DOT qmail AT web11508 DOT mail DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! Sunday, 13 October, 2002 Andrew Lynch lynchaj AT yahoo DOT com wrote: AL> Hopefully, the author will see the issue and rewrite AL> the code in a more portable manner. Can you deduce AL> what the YahooPOPs author is trying to do? Would you AL> suggest a more portable method I could look at? I AL> will likely be finding or writing a replacement for AL> this code section and appreciate any tips. >> 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; It's hard to be sure from such short snippet, but it looks like they should use pthread_mutex_init() function if they want to create a new pthread mutex and initialize it. Single Unix Specification (http://www.opengroup.org/onlinepubs/007908799/) is a standard cygwin is trying to conform to. They have all needed reference information online. Additionally, would you please keep the answers on-list? I deliberately set 'Reply-To:' to point to mailing list, because i read it along with my personal e-mail, so i don't want to get duplicate copies of one message. Egor. mailto:deo AT logos-m DOT 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/