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-2015 The University of Tennessee and The University 7 * of Tennessee Research Foundation. All rights 8 * reserved. 9 * Copyright (c) 2004-2007 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) 2015 Los Alamos National Security, LLC. All rights 14 * reserved. 15 * $COPYRIGHT$ 16 * 17 * Additional copyrights may follow 18 * 19 * $HEADER$ 20 */ 21 22 #include "ompi_config.h" 23 #include "ompi/mca/pml/pml.h" 24 #include "ompi/mca/pml/base/pml_base_request.h" 25 26 /** 27 * If you wonder why these 2 freelists are declared here read the comment 28 * in the pml_base_request.h file. 29 */ 30 opal_free_list_t mca_pml_base_send_requests = {{{0}}}; 31 opal_free_list_t mca_pml_base_recv_requests = {{{0}}}; 32 33 static void mca_pml_base_request_construct(mca_pml_base_request_t* req) 34 { 35 req->req_ompi.req_type = OMPI_REQUEST_PML; 36 } 37 38 OBJ_CLASS_INSTANCE( 39 mca_pml_base_request_t, 40 ompi_request_t, 41 mca_pml_base_request_construct, 42 NULL 43 ); 44