|
@@ -6,6 +6,8 @@
|
|
#include <sys/sem.h>
|
|
#include <sys/sem.h>
|
|
#include "constante.h"
|
|
#include "constante.h"
|
|
|
|
|
|
|
|
+/* --- Structures --- */
|
|
|
|
+
|
|
typedef struct{
|
|
typedef struct{
|
|
/* Id retourner par semget */
|
|
/* Id retourner par semget */
|
|
int id;
|
|
int id;
|
|
@@ -15,6 +17,8 @@ typedef struct{
|
|
int nb;
|
|
int nb;
|
|
}semaphore;
|
|
}semaphore;
|
|
|
|
|
|
|
|
+/* --- Fonctions --- */
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Creation d'un tableau de semaphores
|
|
* Creation d'un tableau de semaphores
|
|
* @param semaphore* Le tableau de semaphore
|
|
* @param semaphore* Le tableau de semaphore
|