@@ -145,12 +145,8 @@ mca_oob_tcp_component_t mca_oob_tcp_component = {
145145 */
146146static int tcp_component_open (void )
147147{
148- mca_oob_tcp_component .next_base = 0 ;
149148 OBJ_CONSTRUCT (& mca_oob_tcp_component .peers , opal_hash_table_t );
150149 opal_hash_table_init (& mca_oob_tcp_component .peers , 32 );
151- OBJ_CONSTRUCT (& mca_oob_tcp_component .ev_bases , opal_pointer_array_t );
152- opal_pointer_array_init (& mca_oob_tcp_component .ev_bases ,
153- orte_oob_base .num_threads , 256 , 8 );
154150
155151 OBJ_CONSTRUCT (& mca_oob_tcp_component .listeners , opal_list_t );
156152 if (ORTE_PROC_IS_HNP ) {
@@ -204,8 +200,6 @@ static int tcp_component_close(void)
204200 }
205201#endif
206202
207- OBJ_DESTRUCT (& mca_oob_tcp_component .ev_bases );
208-
209203 return ORTE_SUCCESS ;
210204}
211205static char * static_port_string ;
@@ -626,27 +620,11 @@ static int component_available(void)
626620static int component_startup (void )
627621{
628622 int rc = ORTE_SUCCESS ;
629- int i ;
630- char * tmp ;
631- opal_event_base_t * evb ;
632623
633624 opal_output_verbose (2 , orte_oob_base_framework .framework_output ,
634625 "%s TCP STARTUP" ,
635626 ORTE_NAME_PRINT (ORTE_PROC_MY_NAME ));
636627
637- /* initialize state */
638- if (0 == orte_oob_base .num_threads ) {
639- opal_pointer_array_add (& mca_oob_tcp_component .ev_bases , orte_oob_base .ev_base );
640- } else {
641- for (i = 0 ; i < orte_oob_base .num_threads ; i ++ ) {
642- opal_asprintf (& tmp , "OOB-TCP-%d" , i );
643- evb = opal_progress_thread_init (tmp );
644- opal_pointer_array_add (& mca_oob_tcp_component .ev_bases , evb );
645- opal_argv_append_nosize (& mca_oob_tcp_component .ev_threads , tmp );
646- free (tmp );
647- }
648- }
649-
650628 /* if we are a daemon/HNP, or we are a standalone app,
651629 * then it is possible that someone else may initiate a
652630 * connection to us. In these cases, we need to start the
@@ -674,14 +652,6 @@ static void component_shutdown(void)
674652 "%s TCP SHUTDOWN" ,
675653 ORTE_NAME_PRINT (ORTE_PROC_MY_NAME ));
676654
677- if (0 < orte_oob_base .num_threads ) {
678- for (i = 0 ; i < orte_oob_base .num_threads ; i ++ ) {
679- opal_progress_thread_finalize (mca_oob_tcp_component .ev_threads [i ]);
680- opal_pointer_array_set_item (& mca_oob_tcp_component .ev_bases , i , NULL );
681- }
682- opal_argv_free (mca_oob_tcp_component .ev_threads );
683- }
684-
685655 if (ORTE_PROC_IS_HNP && mca_oob_tcp_component .listen_thread_active ) {
686656 mca_oob_tcp_component .listen_thread_active = false;
687657 /* tell the thread to exit */
@@ -1327,7 +1297,6 @@ static char **split_and_resolve(char **orig_str, char *name)
13271297
13281298static void peer_cons (mca_oob_tcp_peer_t * peer )
13291299{
1330- peer -> ev_base = NULL ;
13311300 peer -> auth_method = NULL ;
13321301 peer -> sd = -1 ;
13331302 OBJ_CONSTRUCT (& peer -> addrs , opal_list_t );
0 commit comments