17 lines
460 B
C
17 lines
460 B
C
#pragma once
|
|
#include "thread.h"
|
|
|
|
#define PROCESS_NAME_MAX_LENGTH 32
|
|
|
|
struct process;
|
|
|
|
int processSetup();
|
|
struct process *processCreate(char *name);
|
|
int processCountThread(struct process *proc);
|
|
void processListPrint();
|
|
int processRef(struct process *proc);
|
|
int processUnref(struct process *proc);
|
|
int processSetName(struct process *proc, char *name);
|
|
int processAddThread(struct process *proc, struct thread *th);
|
|
int processRemoveThread(struct thread *th);
|