These list items are free list items, and should inherit properly..
This commit was SVN r10295.
Этот коммит содержится в:
родитель
85b60cf2bd
Коммит
9d73217637
@ -113,5 +113,5 @@ mca_mpool_base_tree_item_t* mca_mpool_base_tree_item_get(void) {
|
|||||||
*/
|
*/
|
||||||
void mca_mpool_base_tree_item_put(mca_mpool_base_tree_item_t* item) {
|
void mca_mpool_base_tree_item_put(mca_mpool_base_tree_item_t* item) {
|
||||||
OMPI_FREE_LIST_RETURN(&mca_mpool_base_tree_item_free_list,
|
OMPI_FREE_LIST_RETURN(&mca_mpool_base_tree_item_free_list,
|
||||||
item);
|
&(item->super));
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#define MCA_MPOOL_BASE_TREE_MAX 8
|
#define MCA_MPOOL_BASE_TREE_MAX 8
|
||||||
#include "opal/mca/mca.h"
|
#include "opal/mca/mca.h"
|
||||||
#include "ompi/info/info.h"
|
#include "ompi/info/info.h"
|
||||||
#include "opal/class/opal_list.h"
|
#include "ompi/class/ompi_free_list.h"
|
||||||
#include "ompi/class/ompi_rb_tree.h"
|
#include "ompi/class/ompi_rb_tree.h"
|
||||||
#include "ompi/mca/mpool/mpool.h"
|
#include "ompi/mca/mpool/mpool.h"
|
||||||
|
|
||||||
@ -35,7 +35,7 @@
|
|||||||
*/
|
*/
|
||||||
struct mca_mpool_base_tree_item_t
|
struct mca_mpool_base_tree_item_t
|
||||||
{
|
{
|
||||||
opal_list_item_t super; /**< the parent class */
|
ompi_free_list_item_t super; /**< the parent class */
|
||||||
void* key; /* the address this was alloc'd on */
|
void* key; /* the address this was alloc'd on */
|
||||||
mca_mpool_base_module_t* mpools[MCA_MPOOL_BASE_TREE_MAX]; /**< the mpools */
|
mca_mpool_base_module_t* mpools[MCA_MPOOL_BASE_TREE_MAX]; /**< the mpools */
|
||||||
mca_mpool_base_registration_t* regs[MCA_MPOOL_BASE_TREE_MAX]; /**< the registrations */
|
mca_mpool_base_registration_t* regs[MCA_MPOOL_BASE_TREE_MAX]; /**< the registrations */
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#define MCA_RCACHE_RB_TREE_H
|
#define MCA_RCACHE_RB_TREE_H
|
||||||
#include "opal/mca/mca.h"
|
#include "opal/mca/mca.h"
|
||||||
#include "ompi/info/info.h"
|
#include "ompi/info/info.h"
|
||||||
#include "opal/class/opal_list.h"
|
#include "ompi/class/ompi_free_list.h"
|
||||||
#include "ompi/mca/mpool/mpool.h"
|
#include "ompi/mca/mpool/mpool.h"
|
||||||
#include "rcache_rb.h"
|
#include "rcache_rb.h"
|
||||||
/*
|
/*
|
||||||
@ -46,7 +46,7 @@ typedef struct mca_rcache_rb_tree_key_t mca_rcache_rb_tree_key_t;
|
|||||||
*/
|
*/
|
||||||
struct mca_rcache_rb_tree_item_t
|
struct mca_rcache_rb_tree_item_t
|
||||||
{
|
{
|
||||||
opal_list_item_t super; /**< the parent class */
|
ompi_free_list_item_t super; /**< the parent class */
|
||||||
mca_rcache_rb_tree_key_t key; /**< the key which holds the memory pointers */
|
mca_rcache_rb_tree_key_t key; /**< the key which holds the memory pointers */
|
||||||
mca_mpool_base_registration_t* reg; /**< the registration */
|
mca_mpool_base_registration_t* reg; /**< the registration */
|
||||||
};
|
};
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user