|
-
January 23rd, 2003, 08:04 AM
#1
A question about the precompiler directive __PTHREADS__
Hi, everyone!
Where is the the precompiler directive __PTHREADS__ defined?
Defined in compiler? What is the meaning and function of
the precompiler directive __PTHREADS__?
Thanks in advance,
George
-
January 23rd, 2003, 09:11 AM
#2
pthreads is a thread library on unix. Do a search through all
header files you're #include'ing to see where it's #define'd [like
I've told you in two other posts].
-
January 23rd, 2003, 09:39 AM
#3
Thanks PaulWendt pal!
Does Windows use pthreads library?
If I am using Windows version of the project, can
I passby the codes has something to do with pthreads?
Cheers,
Geroge
-
January 23rd, 2003, 10:48 AM
#4
I am pretty sure that Microsoft hasn't implemented a pthread API
as part of their C-runtime so you'll either need to modify the code
or try to see if there is a version of pthreads for windows.
There MAY be a version of pthreads that has been implemented
on Windows; you'd have to do a search on the internet to see.
Basically, pthreads will do the same thing as native WIN32 API
threads ... but all of the function calls will be different.
-
January 23rd, 2003, 10:51 AM
#5
I guess someone has ported pthreads to WIN32; I'd guess that
it's just a wrapper around the WIN32 API. Here's a link:
http://sources.redhat.com/pthreads-win32/
--Paul
-
January 23rd, 2003, 10:06 PM
#6
Thanks!
George
Originally posted by PaulWendt
I am pretty sure that Microsoft hasn't implemented a pthread API
as part of their C-runtime so you'll either need to modify the code
or try to see if there is a version of pthreads for windows.
There MAY be a version of pthreads that has been implemented
on Windows; you'd have to do a search on the internet to see.
Basically, pthreads will do the same thing as native WIN32 API
threads ... but all of the function calls will be different.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|