cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
argument of type void* in pthread_create
argument of type void* in pthread_create(...)
Oct 3, 2012 at 5:36pm UTC
DeepBlack
(36)
Why is it necessary to pass argument of type (void*) while creating a thread using pthread_create(...)?
Oct 3, 2012 at 6:42pm UTC
kbw
(9488)
Clearly you'll need to pass some information to the thread function as it can't just use global data.
The parameter provides the means for passing information to each thread.
http://www.cplusplus.com/forum/windows/74209/#msg397472
Topic archived. No new replies allowed.