Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Initial revision
[simgrid.git] / cruft / doc / tmpl / Globals.sgml
1 <!-- ##### SECTION Title ##### -->
2 Globals API
3
4 <!-- ##### SECTION Short_Description ##### -->
5 Handling globals
6
7 <!-- ##### SECTION Long_Description ##### -->
8 <para>In GRAS, using globals is forbidden since the daemons will        
9 sometimes run as a thread inside the same process. So, you have to put 
10 all globals in a structure, and tell GRAS that it's your globals.</para>
11
12 <para>Use the grasUserdataNew() macro to create a new user data (or malloc it
13 yourself and use grasUserdataSet yourself), and grasUserdataGet() to
14 retrive a reference to it.</para>
15
16 <!-- ##### SECTION See_Also ##### -->
17 <para>
18
19 </para>
20
21 <!-- ##### FUNCTION gras_userdata_get ##### -->
22 <para>
23
24 </para>
25
26
27
28 <!-- ##### FUNCTION gras_userdata_set ##### -->
29 <para>
30
31 </para>
32
33 @ud: 
34
35
36 <!-- ##### MACRO gras_userdata_new ##### -->
37 <para>
38
39 </para>
40
41 @type: 
42
43