Thread -> worker
This commit is contained in:
parent
b21478ca46
commit
61ceb36028
|
@ -1,5 +1,5 @@
|
||||||
//=-------------------------------------------------------------------------=//
|
//=-------------------------------------------------------------------------=//
|
||||||
// Scheduler definition //
|
// Local workers definition //
|
||||||
// //
|
// //
|
||||||
// Copyright © 2021 The Gem-graph Project //
|
// Copyright © 2021 The Gem-graph Project //
|
||||||
// //
|
// //
|
||||||
|
@ -22,3 +22,5 @@
|
||||||
#ifndef BASE_H
|
#ifndef BASE_H
|
||||||
#include "../include/base.h"
|
#include "../include/base.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
void SchedulerCrashTest(void)
|
void SchedulerCrashTest(void)
|
||||||
{
|
{
|
||||||
const int maxthread = 2000;
|
const int maxthread = 16;
|
||||||
|
|
||||||
SchedulerParams_t *parameters =
|
SchedulerParams_t *parameters =
|
||||||
(SchedulerParams_t*) calloc(1, sizeof(SchedulerParams_t));
|
(SchedulerParams_t*) calloc(1, sizeof(SchedulerParams_t));
|
||||||
|
@ -97,7 +97,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
free(parameters);
|
free(parameters);
|
||||||
|
|
||||||
SchedulerCrashTest();
|
//SchedulerCrashTest();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
//=-------------------------------------------------------------------------=//
|
//=-------------------------------------------------------------------------=//
|
||||||
|
|
||||||
#include "../include/base.h"
|
#include "../include/base.h"
|
||||||
#include "../include/localthread.h"
|
#include "../include/localworker.h"
|
||||||
|
|
||||||
static void *GreatScheduler(void *parameters);
|
static void *GreatScheduler(void *parameters);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue