Module: xenomai-forge Branch: master Commit: 50d5e9283079acc258398b8110d252d4f04d66ac URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=50d5e9283079acc258398b8110d252d4f04d66ac
Author: Philippe Gerum <[email protected]> Date: Wed Nov 16 18:00:44 2011 +0100 copperplate/heapobj: fix misnomer --- lib/copperplate/heapobj-pshared.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/copperplate/heapobj-pshared.c b/lib/copperplate/heapobj-pshared.c index 06ff7d5..9387807 100644 --- a/lib/copperplate/heapobj-pshared.c +++ b/lib/copperplate/heapobj-pshared.c @@ -52,8 +52,8 @@ #define HOBJ_NBUCKETS (HOBJ_MAXLOG2 - HOBJ_MINLOG2 + 2) #define HOBJ_MAXEXTSZ (1U << 31) /* i.e. 2Gb */ -#define HOBJ_FORCE 0x1 /* Force cleanup */ -#define HOBJ_DEPEND 0x2 /* Allocate from main heap */ +#define HOBJ_FORCE 0x1 /* Force cleanup */ +#define HOBJ_SHAREABLE 0x2 /* Allocate from main heap to allow sharing */ /* * The base address of the shared memory segment, as seen by each @@ -579,7 +579,7 @@ static int create_heap(struct heapobj *hobj, const char *session, len = size + sizeof(*heap); - if (flags & HOBJ_DEPEND) { + if (flags & HOBJ_SHARABLE) { heap = alloc_block(&main_heap, len); if (heap == NULL) return __bt(-ENOMEM); @@ -655,7 +655,7 @@ static void pshared_destroy(struct heapobj *hobj) __RT(pthread_mutex_destroy(&heap->lock)); - if (hobj->flags & HOBJ_DEPEND) { + if (hobj->flags & HOBJ_SHARABLE) { free_block(&main_heap, heap); return; } @@ -765,7 +765,7 @@ int heapobj_init_shareable(struct heapobj *hobj, const char *name, hobj->ops = &pshared_ops; return __bt(create_heap(hobj, __this_node.session_label, name, - size, flags | HOBJ_DEPEND)); + size, flags | HOBJ_SHARABLE)); } int heapobj_init_array(struct heapobj *hobj, const char *name, _______________________________________________ Xenomai-git mailing list [email protected] https://mail.gna.org/listinfo/xenomai-git
