1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ 2 /* 3 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana 4 * University Research and Technology 5 * Corporation. All rights reserved. 6 * Copyright (c) 2004-2005 The University of Tennessee and The University 7 * of Tennessee Research Foundation. All rights 8 * reserved. 9 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 10 * University of Stuttgart. All rights reserved. 11 * Copyright (c) 2004-2005 The Regents of the University of California. 12 * All rights reserved. 13 * Copyright (c) 2014 Los Alamos National Security, LLC. All rights 14 * reserved. 15 * $COPYRIGHT$ 16 * 17 * Additional copyrights may follow 18 * 19 * $HEADER$ 20 */ 21 22 #include "opal_config.h" 23 #include "opal/class/opal_lifo.h" 24 opal_lifo_construct(opal_lifo_t * lifo)25static void opal_lifo_construct (opal_lifo_t *lifo) 26 { 27 OBJ_CONSTRUCT(&lifo->opal_lifo_ghost, opal_list_item_t); 28 lifo->opal_lifo_ghost.opal_list_next = &lifo->opal_lifo_ghost; 29 lifo->opal_lifo_head.data.item = &lifo->opal_lifo_ghost; 30 lifo->opal_lifo_head.data.counter = 0; 31 } 32 33 OBJ_CLASS_INSTANCE(opal_lifo_t, opal_object_t, opal_lifo_construct, NULL); 34