|
10 | 10 | * University of Stuttgart. All rights reserved. |
11 | 11 | * Copyright (c) 2004-2005 The Regents of the University of California. |
12 | 12 | * All rights reserved. |
13 | | - * Copyright (c) 2007-2015 Cisco Systems, Inc. All rights reserved. |
| 13 | + * Copyright (c) 2007-2017 Cisco Systems, Inc. All rights reserved |
14 | 14 | * Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved. |
15 | 15 | * Copyright (c) 2009 Oak Ridge National Laboratory |
16 | 16 | * Copyright (c) 2012-2015 Los Alamos National Security, LLC. All rights |
@@ -409,40 +409,6 @@ static int mca_btl_tcp_component_close(void) |
409 | 409 | mca_common_cuda_fini(); |
410 | 410 | #endif /* OPAL_CUDA_SUPPORT */ |
411 | 411 |
|
412 | | -#if MCA_BTL_TCP_SUPPORT_PROGRESS_THREAD |
413 | | - OBJ_DESTRUCT(&mca_btl_tcp_component.tcp_frag_eager_mutex); |
414 | | - OBJ_DESTRUCT(&mca_btl_tcp_component.tcp_frag_max_mutex); |
415 | | - |
416 | | - if( (NULL != mca_btl_tcp_event_base) && |
417 | | - (mca_btl_tcp_event_base != opal_sync_event_base) ) { |
418 | | - /* Turn of the progress thread before moving forward */ |
419 | | - if( -1 != mca_btl_tcp_progress_thread_trigger ) { |
420 | | - mca_btl_tcp_progress_thread_trigger = 0; |
421 | | - /* Let the progress thread know that we're going away */ |
422 | | - if( -1 != mca_btl_tcp_pipe_to_progress[1] ) { |
423 | | - close(mca_btl_tcp_pipe_to_progress[1]); |
424 | | - mca_btl_tcp_pipe_to_progress[1] = -1; |
425 | | - } |
426 | | - while( -1 != mca_btl_tcp_progress_thread_trigger ) { |
427 | | - /*event_base_loopbreak(mca_btl_tcp_event_base);*/ |
428 | | - sched_yield(); |
429 | | - usleep(100); /* give app a chance to re-enter library */ |
430 | | - } |
431 | | - } |
432 | | - opal_event_del(&mca_btl_tcp_component.tcp_recv_thread_async_event); |
433 | | - opal_event_base_free(mca_btl_tcp_event_base); |
434 | | - mca_btl_tcp_event_base = NULL; |
435 | | - |
436 | | - /* Close the remaining pipes */ |
437 | | - if( -1 != mca_btl_tcp_pipe_to_progress[0] ) { |
438 | | - close(mca_btl_tcp_pipe_to_progress[0]); |
439 | | - mca_btl_tcp_pipe_to_progress[0] = -1; |
440 | | - } |
441 | | - } |
442 | | - OBJ_DESTRUCT(&mca_btl_tcp_ready_frag_mutex); |
443 | | - OBJ_DESTRUCT(&mca_btl_tcp_ready_frag_pending_queue); |
444 | | -#endif |
445 | | - |
446 | 412 | return OPAL_SUCCESS; |
447 | 413 | } |
448 | 414 |
|
|
0 commit comments