Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
d96c2a37b0293d52d3ac3dd50047783f34a52916
[simgrid.git] / src / gras / Virtu / rl_process.c
1 /* $Id$ */
2
3 /* process_rl - GRAS process handling on real life                          */
4
5 /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved.            */
6
7 /* This program is free software; you can redistribute it and/or modify it
8  * under the terms of the license (GNU LGPL) which comes with this package. */
9
10 #include "gras/Virtu/virtu_rl.h"
11
12 XBT_LOG_EXTERNAL_CATEGORY(process);
13 XBT_LOG_DEFAULT_CATEGORY(process);
14
15 /* globals */
16 static gras_procdata_t *_gras_procdata = NULL;
17
18 xbt_error_t gras_process_init() {
19   _gras_procdata=xbt_new(gras_procdata_t,1);
20   gras_procdata_init();
21   return no_error;
22 }
23 xbt_error_t gras_process_exit() {
24   gras_procdata_exit();
25   return no_error;
26 }
27
28 /* **************************************************************************
29  * Process data
30  * **************************************************************************/
31
32 gras_procdata_t *gras_procdata_get(void) {
33   xbt_assert0(_gras_procdata,"Run gras_process_init!");
34
35   return _gras_procdata;
36 }