Ups, staged the wrong files:

Improved ThreadPool.
ecode: Make consistent the find/search highlighting with the actual results (Closes SpartanJ/ecode#73).
Fixed $NPROC in LSP client commands.
This commit is contained in:
Martín Lucas Golini
2023-03-10 02:37:01 -03:00
parent 85b5711119
commit 5aef110bda
22 changed files with 277 additions and 106 deletions

View File

@@ -86,7 +86,7 @@ void ProjectDirectoryTree::scan( const ProjectDirectoryTree::ScanCompleteEvent&
#endif
#if EE_PLATFORM != EE_PLATFORM_EMSCRIPTEN || defined( __EMSCRIPTEN_PTHREADS__ )
},
[scanComplete, this] {
[scanComplete, this] ( const auto& ) {
if ( scanComplete )
scanComplete( *this );
} );
@@ -155,12 +155,12 @@ std::shared_ptr<FileListModel> ProjectDirectoryTree::matchTree( const std::strin
void ProjectDirectoryTree::asyncFuzzyMatchTree( const std::string& match, const size_t& max,
ProjectDirectoryTree::MatchResultCb res ) const {
mPool->run( [&, match, max, res]() { res( fuzzyMatchTree( match, max ) ); }, []() {} );
mPool->run( [&, match, max, res]() { res( fuzzyMatchTree( match, max ) ); } );
}
void ProjectDirectoryTree::asyncMatchTree( const std::string& match, const size_t& max,
ProjectDirectoryTree::MatchResultCb res ) const {
mPool->run( [&, match, max, res]() { res( matchTree( match, max ) ); }, []() {} );
mPool->run( [&, match, max, res]() { res( matchTree( match, max ) ); } );
}
std::shared_ptr<FileListModel>