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

Method remove_node

benchmarks/tbb/flow_graph.h:728–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726}
727
728inline void graph::remove_node(graph_node *n) {
729 {
730 spin_mutex::scoped_lock lock(nodelist_mutex);
731 __TBB_ASSERT(my_nodes && my_nodes_last, "graph::remove_node: Error: no registered nodes");
732 if (n->prev) n->prev->next = n->next;
733 if (n->next) n->next->prev = n->prev;
734 if (my_nodes_last == n) my_nodes_last = n->prev;
735 if (my_nodes == n) my_nodes = n->next;
736 }
737 n->prev = n->next = NULL;
738}
739
740inline void graph::reset( __TBB_PFG_RESET_ARG( reset_flags f )) {
741 // reset context

Callers 1

~graph_nodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected