| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <3894619.post@talk.nabble.com> |
| Date: | Wed, 12 Apr 2006 21:53:20 -0700 (PDT) |
| From: | Do Nguyen Luong <do_luong87 AT yahoo DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Thread support in cygwin! |
| MIME-Version: | 1.0 |
| X-Nabble-Sender: | do_luong87 AT yahoo DOT com |
| X-Nabble-From: | Do Nguyen Luong <do_luong87 AT yahoo DOT com> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
Hi, I'm trying to port a program used pthread in Linux to Windows.In cygwin,
I compiled it but when executing I got this message : Threads are not
supported
In Linux, it works fine.
Then in Cygwin I write this simple program :
#include <pthread.h>
#include <unistd.h>
#include <stdio.h>
int main()
{
#ifdef _POSIX_THREADS
printf("sysconf(_SC_THREADS): %d\n", sysconf(_SC_THREADS));
#else
printf("_POSIX_THREADS not defined\n");
#endif
return 0;
}
And I get :
sysconf(_SC_THREADS): -1
Is that mean cygwin doesn't support threads? Or I missed some package?
--
View this message in context: http://www.nabble.com/Thread-support-in-cygwin%21-t1442219.html#a3894619
Sent from the Cygwin Users forum at Nabble.com.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |