Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
properly split init/start for Exec activities
[simgrid.git] / src / simix / smx_synchro_private.hpp
1 /* Copyright (c) 2012-2019. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SIMIX_SYNCHRO_PRIVATE_H
7 #define SIMIX_SYNCHRO_PRIVATE_H
8
9 #include "src/simix/ActorImpl.hpp"
10
11 smx_activity_t SIMIX_synchro_wait(sg_host_t smx_host, double timeout);
12
13 struct s_smx_sem_t {
14   unsigned int value;
15   simgrid::kernel::actor::SynchroList sleeping; /* list of sleeping processes */
16 };
17
18 XBT_PRIVATE void SIMIX_synchro_stop_waiting(smx_actor_t process, smx_simcall_t simcall);
19 XBT_PRIVATE void SIMIX_synchro_finish(smx_activity_t synchro);
20
21 XBT_PRIVATE XBT_PRIVATE smx_sem_t SIMIX_sem_init(unsigned int value);
22 XBT_PRIVATE void SIMIX_sem_release(smx_sem_t sem);
23 XBT_PRIVATE int SIMIX_sem_would_block(smx_sem_t sem);
24 XBT_PRIVATE int SIMIX_sem_get_capacity(smx_sem_t sem);
25
26 #endif