My Project
Chargement...
Recherche...
Aucune correspondance
init-test-synchro.c
Aller à la documentation de ce fichier.
1
9#include "include/unistd.h"
10#include <manux/types.h>
11#include <stdio.h>
12#include <unistd.h> // testSynchro
13
14void 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
25void init(void)
26{
27 int n;
28 printf("Sympa le mode utilisateur !\n");
29
32
33 while(1) {printf("."); for (n=0;n<1000000;n++){};}
34}
#define FALSE
Definition types.h:40
void travailleur(void)
void init(void)
uint16_t c
void printf(char *format,...)
Un premier printf.
Definition stdio.c:142
: Définition des fonctions de base du mode utilisateur de ManuX.
int identifiantTache()
Obtention de l'identifiant de la tâche en cours.
int creerNouvelleTache(void(corps()), booleen shareCons)
Création d"une nouvelle tâche.