start to work for scheduler

This commit is contained in:
Rongsong Shen 2025-12-10 15:59:33 +08:00
parent e001d4955c
commit 5080142ab5
4 changed files with 30 additions and 1 deletions

View file

@ -57,4 +57,4 @@ subdir('lib')
subdir('controller')
subdir('worker')
subdir('autoscaler')
# subdir('scheduler')
subdir('scheduler')

View file

@ -0,0 +1,4 @@
#if !defined(_SCHEDULER_H_)
#define _SCHEDULER_H_ 1
#endif

15
src/scheduler/meson.build Normal file
View file

@ -0,0 +1,15 @@
scheduler_srcs = [
'src/main.c',
]
incdir = include_directories('src', 'include')
scheduler_deps = [
]
scheduler = executable('xce_scheduler',
scheduler_srcs,
include_directories: incdir,
dependencies: scheduler_deps,
link_args: wrap_link_args,
install: true)

10
src/scheduler/src/main.c Normal file
View file

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "scheduler.h"
int main(int argc, char* argv[]) {
printf("Hello,world!\n");
return 0;
}