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

Method create_my_tls

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

end_of_input signal for parallel_pipeline, parallel input filters with 0 tokens allowed.

Source from the content-addressed store, hash-verified

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; }
230 void destroy_my_tls() { int status = end_of_input_tls.destroy(); if(status) handle_perror(status, "Failed to destroy filter TLS"); }
231 bool my_tls_end_of_input() { return end_of_input_tls.get() != 0; }
232 void set_my_tls_end_of_input() { end_of_input_tls.set(1); }

Callers 1

add_filterMethod · 0.80

Calls 2

handle_perrorFunction · 0.85
createMethod · 0.45

Tested by

no test coverage detected