Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
14a2e3afc68a533dc29ac904c716e0dbf5d64fec
[simgrid.git] / src / simix / smx_synchro.c
1 /*      $Id$     */
2
3 /* Copyright (c) 2007 Arnaud Legrand, Bruno Donnassolo.
4    All rights reserved.                                          */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #include "private.h"
10 #include "xbt/log.h"
11
12
13 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_synchro, simix,
14                                 "Logging specific to SIMIX (synchronization)");
15
16
17 /****************************** Synchronization *******************************/
18
19 /*********************************** Mutex ************************************/
20 smx_mutex_t SIMIX_mutex_init()
21 {
22         return xbt_new0(s_smx_mutex_t,1);
23 }
24
25 void SIMIX_mutex_lock(smx_mutex_t mutex)
26 {
27         return;
28 }
29
30 void SIMIX_mutex_trylock(smx_mutex_t mutex)
31 {
32         return;
33 }
34
35 void SIMIX_mutex_unlock(smx_mutex_t mutex)
36 {
37         return;
38 }
39
40 void SIMIX_mutex_destroy(smx_mutex_t mutex)
41 {
42         return;
43 }
44
45 /******************************** Conditional *********************************/
46 smx_cond_t SIMIX_cond_init()
47 {
48         return xbt_new0(s_smx_cond_t,1);
49 }
50
51 void SIMIX_cond_signal(smx_cond_t cond)
52 {
53         return;
54 }
55
56 void SIMIX_cond_wait(smx_cond_t cond,smx_mutex_t mutex)
57 {
58         return;
59 }
60
61 void SIMIX_cond_wait_timeout(smx_cond_t cond,smx_mutex_t mutex, double max_duration)
62 {
63         return;
64 }
65
66 void SIMIX_cond_broadcast(smx_cond_t cond)
67 {
68         return;
69 }
70
71 void SIMIX_cond_destroy(smx_cond_t cond)
72 {
73         return;
74 }