~ubuntu-branches/ubuntu/raring/simgrid/raring

« back to all changes in this revision

Viewing changes to src/xbt/mallocator_private.h

  • Committer: Package Import Robot
  • Author(s): Martin Quinson
  • Date: 2013-01-31 00:24:51 UTC
  • mfrom: (10.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20130131002451-krejhf7w7h24lpsc
Tags: 3.9~rc1-1
* New upstream release: the "Grasgory" release. Major changes:
  - Gras was completely removed from this version.
  - Documentation reorganization to ease browsing it.
  - New default value for the TCP_gamma parameter: 4MiB

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
#ifndef _XBT_MALLOCATOR_PRIVATE_H__
10
10
#define _XBT_MALLOCATOR_PRIVATE_H__
11
 
#include "xbt/xbt_os_thread.h"
 
11
 
12
12
typedef struct s_xbt_mallocator {
13
13
  void **objects;               /* objects stored by the mallocator and available for the user */
14
14
  int current_size;             /* number of objects currently stored */
16
16
  pvoid_f_void_t new_f;         /* function to call when we are running out of objects */
17
17
  void_f_pvoid_t free_f;        /* function to call when we have got too many objects */
18
18
  void_f_pvoid_t reset_f;       /* function to call when an object is released by the user */
19
 
  xbt_os_mutex_t mutex;         /* mutex to ensure the mallocator is thread-safe */
 
19
  int lock;                     /* lock to ensure the mallocator is thread-safe */
20
20
} s_xbt_mallocator_t;
21
21
 
22
22
#endif                          /* _XBT_MALLOCATOR_PRIVATE_H__ */