diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-17 16:59:08 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-17 16:59:08 +0300 |
commit | f23a7617d0701968dd6382447732d3df15a2f801 (patch) | |
tree | 4ce257e4ab21f58ca4d5381a113fee2de38e0a16 | |
parent | d7bd8ee9a9b057d3cc1b75881668e1a6362b646a (diff) |
Cleanup
-rw-r--r-- | src/ui/lookupwidget.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/lookupwidget.c b/src/ui/lookupwidget.c index b7de5872..dcde7d79 100644 --- a/src/ui/lookupwidget.c +++ b/src/ui/lookupwidget.c | |||
@@ -265,7 +265,7 @@ static void searchIdentities_LookupJob_(iLookupJob *d) { | |||
265 | 265 | ||
266 | static iThreadResult worker_LookupWidget_(iThread *thread) { | 266 | static iThreadResult worker_LookupWidget_(iThread *thread) { |
267 | iLookupWidget *d = userData_Thread(thread); | 267 | iLookupWidget *d = userData_Thread(thread); |
268 | printf("[LookupWidget] worker is running\n"); fflush(stdout); | 268 | // printf("[LookupWidget] worker is running\n"); fflush(stdout); |
269 | lock_Mutex(d->mtx); | 269 | lock_Mutex(d->mtx); |
270 | for (;;) { | 270 | for (;;) { |
271 | wait_Condition(&d->jobAvailable, d->mtx); | 271 | wait_Condition(&d->jobAvailable, d->mtx); |
@@ -312,13 +312,13 @@ static iThreadResult worker_LookupWidget_(iThread *thread) { | |||
312 | /* Previous results haven't been taken yet. */ | 312 | /* Previous results haven't been taken yet. */ |
313 | delete_LookupJob(d->finishedJob); | 313 | delete_LookupJob(d->finishedJob); |
314 | } | 314 | } |
315 | printf("[LookupWidget] worker has %zu results\n", size_PtrArray(&job->results)); | 315 | // printf("[LookupWidget] worker has %zu results\n", size_PtrArray(&job->results)); |
316 | fflush(stdout); | 316 | fflush(stdout); |
317 | d->finishedJob = job; | 317 | d->finishedJob = job; |
318 | postCommand_Widget(as_Widget(d), "lookup.ready"); | 318 | postCommand_Widget(as_Widget(d), "lookup.ready"); |
319 | } | 319 | } |
320 | unlock_Mutex(d->mtx); | 320 | unlock_Mutex(d->mtx); |
321 | printf("[LookupWidget] worker has quit\n"); fflush(stdout); | 321 | // printf("[LookupWidget] worker has quit\n"); fflush(stdout); |
322 | return 0; | 322 | return 0; |
323 | } | 323 | } |
324 | 324 | ||