@@ -143,12 +143,8 @@ mca_oob_tcp_component_t mca_oob_tcp_component = {
143143 */
144144static int tcp_component_open (void )
145145{
146- mca_oob_tcp_component .next_base = 0 ;
147146 OBJ_CONSTRUCT (& mca_oob_tcp_component .peers , opal_hash_table_t );
148147 opal_hash_table_init (& mca_oob_tcp_component .peers , 32 );
149- OBJ_CONSTRUCT (& mca_oob_tcp_component .ev_bases , opal_pointer_array_t );
150- opal_pointer_array_init (& mca_oob_tcp_component .ev_bases ,
151- orte_oob_base .num_threads , 256 , 8 );
152148
153149 OBJ_CONSTRUCT (& mca_oob_tcp_component .listeners , opal_list_t );
154150 if (ORTE_PROC_IS_HNP ) {
@@ -205,8 +201,6 @@ static int tcp_component_close(void)
205201 }
206202#endif
207203
208- OBJ_DESTRUCT (& mca_oob_tcp_component .ev_bases );
209-
210204 return ORTE_SUCCESS ;
211205}
212206static char * static_port_string ;
@@ -663,27 +657,11 @@ static orte_rml_pathway_t* component_query_transports(void)
663657static int component_startup (void )
664658{
665659 int rc = ORTE_SUCCESS ;
666- int i ;
667- char * tmp ;
668- opal_event_base_t * evb ;
669660
670661 opal_output_verbose (2 , orte_oob_base_framework .framework_output ,
671662 "%s TCP STARTUP" ,
672663 ORTE_NAME_PRINT (ORTE_PROC_MY_NAME ));
673664
674- /* initialize state */
675- if (0 == orte_oob_base .num_threads ) {
676- opal_pointer_array_add (& mca_oob_tcp_component .ev_bases , orte_oob_base .ev_base );
677- } else {
678- for (i = 0 ; i < orte_oob_base .num_threads ; i ++ ) {
679- asprintf (& tmp , "OOB-TCP-%d" , i );
680- evb = opal_progress_thread_init (tmp );
681- opal_pointer_array_add (& mca_oob_tcp_component .ev_bases , evb );
682- opal_argv_append_nosize (& mca_oob_tcp_component .ev_threads , tmp );
683- free (tmp );
684- }
685- }
686-
687665 /* if we are a daemon/HNP, or we are a standalone app,
688666 * then it is possible that someone else may initiate a
689667 * connection to us. In these cases, we need to start the
@@ -711,14 +689,6 @@ static void component_shutdown(void)
711689 "%s TCP SHUTDOWN" ,
712690 ORTE_NAME_PRINT (ORTE_PROC_MY_NAME ));
713691
714- if (0 < orte_oob_base .num_threads ) {
715- for (i = 0 ; i < orte_oob_base .num_threads ; i ++ ) {
716- opal_progress_thread_finalize (mca_oob_tcp_component .ev_threads [i ]);
717- opal_pointer_array_set_item (& mca_oob_tcp_component .ev_bases , i , NULL );
718- }
719- opal_argv_free (mca_oob_tcp_component .ev_threads );
720- }
721-
722692 if (ORTE_PROC_IS_HNP && mca_oob_tcp_component .listen_thread_active ) {
723693 mca_oob_tcp_component .listen_thread_active = false;
724694 /* tell the thread to exit */
@@ -1359,7 +1329,6 @@ static char **split_and_resolve(char **orig_str, char *name)
13591329
13601330static void peer_cons (mca_oob_tcp_peer_t * peer )
13611331{
1362- peer -> ev_base = NULL ;
13631332 peer -> auth_method = NULL ;
13641333 peer -> sd = -1 ;
13651334 OBJ_CONSTRUCT (& peer -> addrs , opal_list_t );
0 commit comments