mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Reduce the iterations in the iothread test to something more reasonable.
Remove an unnecessary lock.
This commit is contained in:
parent
3d1a204c83
commit
3d85000f13
2 changed files with 1 additions and 2 deletions
|
@ -494,7 +494,7 @@ static void test_iothread(void)
|
|||
{
|
||||
say(L"Testing iothreads");
|
||||
int *int_ptr = new int(0);
|
||||
int iterations = 5000000;
|
||||
int iterations = 50000;
|
||||
int max_achieved_thread_count = 0;
|
||||
double start = timef();
|
||||
for (int i=0; i < iterations; i++)
|
||||
|
|
|
@ -303,7 +303,6 @@ static void iothread_service_main_thread_requests(void)
|
|||
{
|
||||
// Perform each of the functions
|
||||
// Note we are NOT responsible for deleting these. They are stack allocated in their respective threads!
|
||||
scoped_lock cond_lock(s_main_thread_performer_lock);
|
||||
while (! request_queue.empty())
|
||||
{
|
||||
MainThreadRequest_t *req = request_queue.front();
|
||||
|
|
Loading…
Reference in a new issue