forked from justellie/ProyectoSO
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactor_jefe_epidemia.c
More file actions
31 lines (30 loc) · 803 Bytes
/
actor_jefe_epidemia.c
File metadata and controls
31 lines (30 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* @file actor_jefe_epidemia.c
* @author Jesús Pelay
* @brief
* @version 0.1
* @date 2021-03-28
*
* @copyright Copyright (c) 2021
*
*/
#include "actores.h"
#include "definiciones.h"
#include <stdbool.h>
/**
* @brief Gestiona las estadísticas de los casos de covid para los hospitales
* y también a la gestión nacional
*
* @param datos_hospital datos del hospital cuyas estadísticas estamos llevando
*
*/
void* actor_jefe_epidemia(void* datos_hospital) {
Hospital *hospital = (Hospital *)datos_hospital;
long* diagnostico;
while(true) {
diagnostico = refqueue_get(&hospital->reporte);
if((*diagnostico) == Intensivo) {//AHORA SI COMPARA EL TIPO DE DATO ADECUADO
hospital->estadis_pacientes.covid += 1;
}
}
}