Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
79ab31d06fe298c77cb8f24e0be18f4ba7dfd032
[simgrid.git] / cruft / doc / tmpl / virtu_globals.sgml
1 <!-- ##### SECTION Title ##### -->
2 Globals
3
4 <!-- ##### SECTION Short_Description ##### -->
5 Handling global variables so that it works on simulator
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