Allegro.cc
Projects
Action252
Adventure22
Arcade216
Board Games30
Demos24
Emulators10
Other68
Puzzle139
Role Playing40
Sports25
Strategy58
Utilities46
Resource Directory
Code Gallery3
Compilers12
Help & Documents13
Libraries63
Media2
Tools8
CLWP
Source Directory » Libraries » Threads » CLWP
Author:
Kees Moerman 
Version:
1.3 
URL:
http://home.hccnet.nl/Kees.Moerman/c_clwp_e.html
CLWP: Co-operative Light-weight Processes (LWP Threads)
Updated version 1.3 available: also for Linux! (Feb'03)

Do you ever need to animate multiple, independent, complex characters in Allegro games? Much easier using multiple threads, don't need to do all kind of state saving/restoring. CLWP will help you here! Co-operative, so you don't need thread-safe libraries!

Code is partly in assembly, and as such only suitable for x86 architecture systems (tested under MinGW and DJGPP using GCC 2.95.3 and 3.2, up to Windows/2000)

readme.txt, documentation (text and html) and examples included.available.

Update 1.2: error in timing example corrected, task switch measured now at about 0.25 microsecond on 1 GHz P-III.

Update 1.3: more extended error checking and verification, bug fix in clwpDeleteSemaphore
Poll
Is grammer and spelling important?
No weigh! 14.47
-
Absilootly, Yes. 62.63
-
I'm a looser with no onion. 22.90
-