Thread -> worker

This commit is contained in:
Adrien Bourmault 2021-06-11 13:40:59 +02:00
parent b21478ca46
commit 61ceb36028
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
4 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
//=-------------------------------------------------------------------------=//
// Scheduler definition //
// Local workers definition //
// //
// Copyright © 2021 The Gem-graph Project //
// //
@ -22,3 +22,5 @@
#ifndef BASE_H
#include "../include/base.h"
#endif

View File

@ -31,7 +31,7 @@
void SchedulerCrashTest(void)
{
const int maxthread = 2000;
const int maxthread = 16;
SchedulerParams_t *parameters =
(SchedulerParams_t*) calloc(1, sizeof(SchedulerParams_t));
@ -97,7 +97,7 @@ int main(int argc, char **argv)
free(parameters);
SchedulerCrashTest();
//SchedulerCrashTest();
return 0;
}

View File

@ -20,7 +20,7 @@
//=-------------------------------------------------------------------------=//
#include "../include/base.h"
#include "../include/localthread.h"
#include "../include/localworker.h"
static void *GreatScheduler(void *parameters);