My Project
Chargement...
Recherche...
Aucune correspondance
init-test-synchro.c
Aller à la documentation de ce fichier.
1
8
#include "
include/manux/types.h
"
9
#include "
include/unistd.h
"
10
#include <manux/types.h>
11
#include <
stdio.h
>
12
#include <
unistd.h
>
// testSynchro
13
14
void
travailleur
(
void
)
15
{
16
int
c
= 0;
17
int
n;
18
19
for
(n = 0 ; n < 3 ; n++) {
20
c
= testSynchro(1, 2);
21
printf
(
"[%d] Compteur = %d\n"
,
identifiantTache
(),
c
);
22
}
23
}
24
25
void
init
(
void
)
26
{
27
int
n;
28
printf
(
"Sympa le mode utilisateur !\n"
);
29
30
creerNouvelleTache
(
travailleur
,
FALSE
);
31
creerNouvelleTache
(
travailleur
,
FALSE
);
32
33
while
(1) {
printf
(
"."
);
for
(n=0;n<1000000;n++){};}
34
}
FALSE
#define FALSE
Definition
types.h:40
travailleur
void travailleur(void)
Definition
init-test-synchro.c:14
init
void init(void)
Definition
init-test-synchro.c:25
c
uint16_t c
Definition
main-bootreg.c:24
stdio.h
printf
void printf(char *format,...)
Un premier printf.
Definition
stdio.c:142
unistd.h
: Définition des fonctions de base du mode utilisateur de ManuX.
identifiantTache
int identifiantTache()
Obtention de l'identifiant de la tâche en cours.
creerNouvelleTache
int creerNouvelleTache(void(corps()), booleen shareCons)
Création d"une nouvelle tâche.
types.h
usr
init-test-synchro.c
Généré par
1.15.0