aboutsummaryrefslogtreecommitdiffstats
path: root/judge/judge_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'judge/judge_server.h')
-rw-r--r--judge/judge_server.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/judge/judge_server.h b/judge/judge_server.h
deleted file mode 100644
index 9d7b753..0000000
--- a/judge/judge_server.h
+++ /dev/null
@@ -1,30 +0,0 @@
-typedef int (*line_run_fn)(struct judgx_line_info *line_info);
-
-struct server_thread_info{
- int threadid;
- pthread_t pt;
-
- char run_path[PATH_MAX + 1];
-};
-struct judge_submit_info{
- struct judge_submit_info *next;
- struct judge_submit_info *prev;
-
- int submitid;
- int proid;
-};
-
-static int server_cleardir_callback(const char *path,const struct stat *st,int flag,struct FTW *ftwbuf);
-static int server_cleardir(char *path);
-static int server_updatedb(PGconn *sqlc,int submitid,int result_count,struct judgx_line_result *result);
-static void* server_thread(void *arg);
-
-static struct judge_submit_info server_queue_head;
-static sem_t server_queue_sem;
-static pthread_mutex_t server_queue_mutex;
-
-int judge_server();
-
-extern struct judge_proc_info* judge_proc_create(char *abspath,char *path,char *sopath,unsigned long timelimit,unsigned long memlimit);
-extern int judge_proc_free(struct judge_proc_info *proc_info);
-extern int judge_proc_run(struct judge_proc_info *proc_info);