Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » IsFinished() for CoWork
IsFinished() for CoWork [message #14579] Mon, 03 March 2008 23:58 Go to previous message
kodos is currently offline  kodos
Messages: 111
Registered: March 2008
Experienced Member
Hi,

I think that a function IsFinished() would be realy usefull in the CoWork class.

CoWork.h
...
	bool IsFinished();
...
	bool IsFinished()               { return true; }
	//In the singlethreaded version


CoWork.cpp
bool CoWork::IsFinished() {
	Pool &p = pool();
	p.lock.Enter();
	bool retVal = todo == 0;
	p.lock.Leave();
	return retVal;
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CPU_Cores() error
Next Topic: CoWork buggy!?
Goto Forum:
  


Current Time: Wed May 15 05:57:22 CEST 2024

Total time taken to generate the page: 0.01442 seconds