Thread Programming

Started by
2 comments, last by guitarplayer 21 years, 10 months ago
is there a lib(or something) for thread programming in console windows applications? Can i explicit organize threads in windows programming? if (ansi c++ && windows.h) whooraay!! else ok, lets do those cheats.
----------------------------I would rather burn dollars than USA flags... but they are too expensive!
Advertisement
Look up "dlls, processes and threads" in MSDN. CreateThread and _beginthreadex start new threads, go from there.
---visit #directxdev on afternet <- not just for directx, despite the name
Boost''s threading library is pure C++.
It can deal with member functions and stuff.

Right now, it provides the fundamental building blocks :
- threads (can call a function or a function object)
- thread groups
- mutexes & scoped locking
- condition variables
- thread-specific storage
- ''once'' functions.

Be sure to follow the instructions as to how to build the library though. It can be tricky (especially as you hunt for the actual output files).

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
i can email you my Thread wrapper. Its a basic one, but
you can mess arround with it, and play a bit with it, and
learn.

Threads are not that dificult... you''ll see

[Hugo Ferreira][Positronic Dreams][Stick Soldiers]
"Redundant book title: "Windows For Dummies".
"Camouflage condoms: So they won''t see you coming".

This topic is closed to new replies.

Advertisement