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

Method has_item

benchmarks/tbb/pipeline.cpp:226–226  ·  view source on GitHub ↗

true if the current low_token is valid.

Source from the content-addressed store, hash-verified

224
225 //! true if the current low_token is valid.
226 bool has_item() { spin_mutex::scoped_lock lock(array_mutex); return array[low_token&(array_size -1)].is_valid; }
227
228 // end_of_input signal for parallel_pipeline, parallel input filters with 0 tokens allowed.
229 void create_my_tls() { int status = end_of_input_tls.create(); if(status) handle_perror(status, "TLS not allocated for filter"); end_of_input_tls_allocated = true; }

Callers 1

internal_process_itemMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected