3 /* process_rl - GRAS process handling on real life */
5 /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */
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. */
10 #include "gras_modinter.h" /* module initialization interface */
11 #include "gras/Virtu/virtu_rl.h"
14 XBT_LOG_EXTERNAL_CATEGORY(process);
15 XBT_LOG_DEFAULT_CATEGORY(process);
18 static gras_procdata_t *_gras_procdata = NULL;
19 char const *_gras_procname = NULL;
21 void gras_process_init() {
22 _gras_procdata=xbt_new(gras_procdata_t,1);
25 void gras_process_exit() {
30 const char *xbt_procname(void) {
31 if(_gras_procname) return _gras_procname;
35 int gras_os_getpid(void) {
39 /* **************************************************************************
41 * **************************************************************************/
43 gras_procdata_t *gras_procdata_get(void) {
44 xbt_assert0(_gras_procdata,"Run gras_process_init (ie, gras_init)!");
46 return _gras_procdata;