delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/07/10:52:22

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
X-Authentication-Warning: localhost.localdomain: ronald owned process doing -bs
Date: Mon, 7 Apr 2003 16:07:19 +0200 (CEST)
From: Ronald Landheer-Cieslak <ronald AT landheer DOT com>
X-X-Sender: ronald AT localhost DOT localdomain
To: Ignasi Villagrasa <gri AT netcom DOT es>
cc: cygwin AT cygwin DOT com
Subject: Re: Multi-threaded programs
In-Reply-To: <3E918F68.9090802@netcom.es>
Message-ID: <Pine.LNX.4.44.0304071603440.1452-100000@localhost.localdomain>
MIME-Version: 1.0

Hello Ignasi,

The answers to all these questions really depends on what you want to do, 
exactly: do you want to build a native Windows application with a free 
compiler, without every using any POSIX functions? If that is the case, 
you don't need Cygwin (the DLL) and you should use the no-cygwin options.

If you want to use Cygwin as a first step towards POSIX portability, you 
should use the Cygwin DLL and the proper POSIX functions, such as 
pthreads. You can then start taking out the Windows API calls and use the 
POSIX calls in stead. Of course, because Cygwin is just a DLL in a Windows 
environment, you'll still be running in the Win32 subsystem and you'll 
still have access to its features - but you can do this as a step toward a 
real POSIX system..

HTH

rlc


On Mon, 7 Apr 2003, Ignasi Villagrasa wrote:

> Hi eveyone,
> 
> I'd like to know what options I should use in order to migrate a 
> multi-threaded Windows application from Watcom compiler to cygwin.
> 
> Should I use cygwin or no-cygwin options ?
> 
> I'm thinking of no-cygwin option because the program is running properly 
> under Watcom C++ compiler using windows native implementation.
> 
> Should I use cygwin pthread implementation or native thread NT functions ?
> 
> Thanks in advance,
> 
> Ignasi Villagrasa.
> 
> 
> 
> 
> 
> --
> 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/
> 


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019