MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / try_put

Method try_put

benchmarks/tbb/flow_graph.h:180–185  ·  view source on GitHub ↗

Put an item to the receiver

Source from the content-addressed store, hash-verified

178
179 //! Put an item to the receiver
180 bool try_put( const T& t ) {
181 task *res = try_put_task(t);
182 if(!res) return false;
183 if (res != SUCCESSFULLY_ENQUEUED) FLOW_SPAWN(*res);
184 return true;
185 }
186
187 //! put item to successor; return task to run the successor if possible.
188protected:

Callers 1

register_successorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected