Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Let the context version compile properly after the last 'sanitization' of the backtra...
[simgrid.git] / src / xbt / dynar_private.h
1 /* $Id$ */
2
3 /* a generic DYNamic ARray implementation.                                  */
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 #ifndef DYNAR_PRIVATE_H
11 #define DYNAR_PRIVATE_H
12
13 #include "xbt/synchro.h"
14 typedef struct xbt_dynar_s {
15   unsigned long          size;
16   unsigned long          used;
17   unsigned long          elmsize;
18   void           *data;
19   void_f_pvoid_t *free_f;
20   xbt_mutex_t    mutex;
21         int synchro_process_pid;
22 } s_xbt_dynar_t;
23
24 void _dynar_unlock(xbt_dynar_t);
25 void _dynar_lock(xbt_dynar_t dynar);
26 #endif /* DYNAR_PRIVATE_H */