[For complete, up-to-date TBB information visit: http://www.ThreadingBuildingBlocks.org]

TbbRef (Ver. 20): 8.4 empty_task Class

8.4 empty_task Class

Summary

Subclass of task that represents doing nothing.

Syntax

class empty_task;

Header

#include "tbb/task.h"

Description

An empty_task is a task that does nothing. It is useful as a continuation of a parent task when the continuation should do nothing except wait for its children to complete.

Members

namespace tbb {

class empty_task: public task {

/*override*/ task* execute() {return NULL;}

};

}

[For complete, up-to-date TBB information visit: http://www.ThreadingBuildingBlocks.org]