mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-04 04:00:36 +01:00 
			
		
		
		
	task: track number of Task objects in program and provide report
This is a simple lightweight counter that tracks the number of Task objects that exist. Useful for leak detection. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -47,6 +47,10 @@ namespace crucible {
 | 
			
		||||
		/// Usually used to reschedule the currently executing Task.
 | 
			
		||||
		static Task current_task();
 | 
			
		||||
 | 
			
		||||
		/// Returns number of currently existing Task objects.
 | 
			
		||||
		/// Good for spotting leaks.
 | 
			
		||||
		static size_t instance_count();
 | 
			
		||||
 | 
			
		||||
		/// Ordering operator for containers
 | 
			
		||||
		bool operator<(const Task &that) const;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user