delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/04/18/12:45:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: cwebb AT emailbox DOT hdtv DOT lucent DOT com
Date: Sun, 18 Apr 1999 13:44:27 -0400
Message-Id: <199904181744.NAA22832@sundae.hdtv.lucent.com>
To: cygwin AT sourceware DOT cygnus DOT com
Cc: cwebb AT emailbox DOT hdtv DOT lucent DOT com
Subject: Porting: Can I use WinNT Fibers? cygwin or mingw32?

Hi Everyone,

I'm trying to port an application from Solaris to WinNT(4.0).  It is an
interpreted procedural language (bison/flex) etc.  So far, I've had a
LOT of successs and happiness with cygwin in this effort. Congrats to
everyone working on cygwin.

The applications uses threads, BUT it is designed to only let one
thread run at a time.  I DON'T NEED concurrency -- I just need context
switching. So far, I've just ifdefed out the parts of my code that use
threads, and worked on the rest of the porting effort.

Now I'm at the stage where I need to figure out the thread stuff.
I've read that the cygwin DLL doesn't support multi-threaded
applications. I've also read about WinNT fibers. Fibers seem implement
the exact context-switching functionality that I need. And since
fibers don't have any concurrency, it at least seems likely that I
ought to be able to safely use them under cygwin.

My questions:

	1) Can I safely use fibers within a program running under 
		the cygwin DLL? Or do I have to use mingw32?

	2) How do I create an updated libkernel32.a so that I
		can successfully link against these functions?
		(I tried several times before I wrote this email
		to use dlltool to do this, but it's harder than it
		looks :-)

	3) Do I even have to do (2)? :-)

If I figure this out, I'll be happy to let anyone who is interested
know how I did it.

Thanks in advance for your response,

Chip

	







--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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