This is the mail archive of the
mailing list for the pthreas-win32 project.
- To: 'Alexey Sushkov' <sushkov at dins dot ru>, pthreads-win32 at sourceware dot cygnus dot com
- Subject: RE: Posix
- From: "Bossom, John" <John dot Bossom at Cognos dot COM>
- Date: Fri, 1 Jun 2001 10:03:30 -0400
You are incorrect.
You do not have to allocate any memory on Win32 to make the calls.
The behaviour is exactly the same, from a user's point of view.
(Otherwise, it wouldn't be a very useful library if you had to do things
differently from a coding point of view)
From: Alexey Sushkov [mailto:email@example.com]
Sent: June 1, 2001 9:44 AM
I am porting some app from Linux to Win32. The app uses functions:
pthread_mutex_init(&myId, NULL) pthread_attr_init(&myAttributes) and so on.
Before calling functions it does not allocate memory for myId and
myAttributes variables. As I understand this in correct behavior in Linux
environment because memory is allocated inside the functions but wrong in
Win32 because it is necessary allocate memory before calling the functions.
Am I right? If yes then my question is: why in Win32 you have not emulated