Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / src / include / mc / datatypes.h
1 /* Copyright (c) 2008-2017. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef MC_DATATYPE_H
7 #define MC_DATATYPE_H
8
9 #include <src/internal_config.h>
10 #include <xbt/base.h>
11
12 #if HAVE_UCONTEXT_H
13 #include <ucontext.h>
14 #endif
15
16 SG_BEGIN_DECL()
17
18 struct s_stack_region{
19   void *address;
20 #if HAVE_UCONTEXT_H
21   ucontext_t* context;
22 #endif
23   size_t size;
24   int block;
25   int process_index;
26 };
27 typedef struct s_stack_region  s_stack_region_t;
28 typedef struct s_stack_region* stack_region_t;
29
30 SG_END_DECL()
31
32 #endif