MCPcopy Create free account
hub / github.com/SpartanJ/eepp / removeWithTag

Method removeWithTag

src/eepp/system/threadpool.cpp:100–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100bool ThreadPool::removeWithTag( const Uint64& tag ) {
101 std::vector<Uint64> ids;
102 {
103 std::unique_lock<std::mutex> lock( mMutex );
104 for ( const auto& work : mWork )
105 if ( work->tag == tag )
106 ids.emplace_back( work->id );
107 }
108 for ( const auto& id : ids )
109 removeId( id );
110 return !ids.empty();
111}
112
113Uint64 ThreadPool::run( const std::function<void()>& func,
114 const std::function<void( const Uint64& )>& doneCallback,

Callers 5

findPrevTextMethod · 0.80
findNextTextMethod · 0.80
hideGlobalSearchBarMethod · 0.80
~UICodeEditorMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected