root/mpich2/trunk/src/mpid/ch3/channels/nemesis/nemesis/netmod/tcp/tcp_finalize.c @ 4415

Revision 4415, 1.2 KB (checked in by buntinas, 7 months ago)

removed unneeded in_or_out parameter from network_poll functions. Removed tcp_poll.c which became unnecessary and refactored related code.

Line 
1/* -*- Mode: C; c-basic-offset:4 ; -*- */
2/*
3 *  (C) 2006 by Argonne National Laboratory.
4 *      See COPYRIGHT in top-level directory.
5 */
6
7#include "tcp_impl.h"
8
9#undef FUNCNAME
10#define FUNCNAME MPID_nem_tcp_finalize
11#undef FCNAME
12#define FCNAME MPIDI_QUOTE(FUNCNAME)
13int MPID_nem_tcp_finalize()
14{
15    int mpi_errno = MPI_SUCCESS;
16    int ret;
17    MPIDI_STATE_DECL(MPID_STATE_MPID_NEM_TCP_FINALIZE);
18
19    MPIDI_FUNC_ENTER(MPID_STATE_MPID_NEM_TCP_FINALIZE);
20
21    mpi_errno = MPID_nem_tcp_send_finalize();
22    if (mpi_errno) MPIU_ERR_POP(mpi_errno);
23    mpi_errno = MPID_nem_tcp_sm_finalize();
24    if (mpi_errno) MPIU_ERR_POP(mpi_errno);
25     
26    if (MPID_nem_tcp_g_lstn_sc.fd)
27    {
28        CHECK_EINTR (ret, close(MPID_nem_tcp_g_lstn_sc.fd));
29        MPIU_ERR_CHKANDJUMP2 (ret == -1, mpi_errno, MPI_ERR_OTHER, "**closesocket", "**closesocket %s %d", errno, strerror (errno));
30    }
31       
32 fn_exit:
33    MPIDI_FUNC_EXIT(MPID_STATE_MPID_NEM_TCP_FINALIZE);
34    return mpi_errno;
35 fn_fail:
36    goto fn_exit;
37}
38
39#undef FUNCNAME
40#define FUNCNAME MPID_nem_tcp_ckpt_shutdown
41#undef FCNAME
42#define FCNAME MPIDI_QUOTE(FUNCNAME)
43int MPID_nem_tcp_ckpt_shutdown()
44{
45    return MPID_nem_tcp_finalize();
46}
Note: See TracBrowser for help on using the browser.