Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
context_t -> xbt_context_t
[simgrid.git] / include / xbt / context.h
1 /*      $Id$     */
2
3 /* Copyright (c) 2004 Arnaud Legrand. All rights reserved.                  */
4
5 /* This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. */
7
8 #ifndef _XBT_CONTEXT_H
9 #define _XBT_CONTEXT_H
10
11 typedef struct s_xbt_context *xbt_context_t;
12 typedef int(*xbt_context_function_t)(int argc, char *argv[]);
13
14 void context_init(void);
15 void context_empty_trash(void);
16 xbt_context_t context_create(xbt_context_function_t code, int argc, char *argv[]);
17 void context_start(xbt_context_t context);
18 void context_yield(xbt_context_t context);
19 int context_get_id(xbt_context_t context);
20
21 #endif                          /* _XBT_CONTEXT_H */