summaryrefslogtreecommitdiff
path: root/src/search.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-04 21:07:21 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-04 21:07:21 +0100
commit5bb723bb02a803f0315f3dd734a19e75706baf06 (patch)
tree688c07fdf13f8e36d92cf72721af4431039016b3 /src/search.h
parent305b9dd7c40abf1e8936937e539f7565423183da (diff)
fix racecondition between file and text search threads
Diffstat (limited to 'src/search.h')
-rw-r--r--src/search.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.h b/src/search.h
index e9464b5..400edbe 100644
--- a/src/search.h
+++ b/src/search.h
@@ -68,6 +68,6 @@ int ts_filter_matches(ts_array *filters, utf8_int8_t *string, utf8_int8_t **
int ts_string_match(utf8_int8_t *first, utf8_int8_t *second);
ts_search_result* ts_create_empty_search_result();
bool ts_string_contains(utf8_int8_t *text_to_search, utf8_int8_t *text_to_find, ts_array *text_matches);
-void ts_start_search(utf8_int8_t* path, utf8_int8_t* filter, utf8_int8_t* query);
+void ts_start_search(utf8_int8_t *path, utf8_int8_t *filter, utf8_int8_t *query, int thread_count, int max_file_size);
#endif \ No newline at end of file