@@ -147,12 +147,8 @@ mca_oob_tcp_component_t mca_oob_tcp_component = {
147147 */
148148static int tcp_component_open (void )
149149{
150- mca_oob_tcp_component .next_base = 0 ;
151150 OBJ_CONSTRUCT (& mca_oob_tcp_component .peers , opal_hash_table_t );
152151 opal_hash_table_init (& mca_oob_tcp_component .peers , 32 );
153- OBJ_CONSTRUCT (& mca_oob_tcp_component .ev_bases , opal_pointer_array_t );
154- opal_pointer_array_init (& mca_oob_tcp_component .ev_bases ,
155- orte_oob_base .num_threads , 256 , 8 );
156152
157153 OBJ_CONSTRUCT (& mca_oob_tcp_component .listeners , opal_list_t );
158154 if (ORTE_PROC_IS_HNP ) {
@@ -206,8 +202,6 @@ static int tcp_component_close(void)
206202 }
207203#endif
208204
209- OBJ_DESTRUCT (& mca_oob_tcp_component .ev_bases );
210-
211205 return ORTE_SUCCESS ;
212206}
213207static char * static_port_string ;
@@ -664,27 +658,11 @@ static orte_rml_pathway_t* component_query_transports(void)
664658static int component_startup (void )
665659{
666660 int rc = ORTE_SUCCESS ;
667- int i ;
668- char * tmp ;
669- opal_event_base_t * evb ;
670661
671662 opal_output_verbose (2 , orte_oob_base_framework .framework_output ,
672663 "%s TCP STARTUP" ,
673664 ORTE_NAME_PRINT (ORTE_PROC_MY_NAME ));
674665
675- /* initialize state */
676- if (0 == orte_oob_base .num_threads ) {
677- opal_pointer_array_add (& mca_oob_tcp_component .ev_bases , orte_oob_base .ev_base );
678- } else {
679- for (i = 0 ; i < orte_oob_base .num_threads ; i ++ ) {
680- asprintf (& tmp , "OOB-TCP-%d" , i );
681- evb = opal_progress_thread_init (tmp );
682- opal_pointer_array_add (& mca_oob_tcp_component .ev_bases , evb );
683- opal_argv_append_nosize (& mca_oob_tcp_component .ev_threads , tmp );
684- free (tmp );
685- }
686- }
687-
688666 /* if we are a daemon/HNP, or we are a standalone app,
689667 * then it is possible that someone else may initiate a
690668 * connection to us. In these cases, we need to start the
@@ -712,14 +690,6 @@ static void component_shutdown(void)
712690 "%s TCP SHUTDOWN" ,
713691 ORTE_NAME_PRINT (ORTE_PROC_MY_NAME ));
714692
715- if (0 < orte_oob_base .num_threads ) {
716- for (i = 0 ; i < orte_oob_base .num_threads ; i ++ ) {
717- opal_progress_thread_finalize (mca_oob_tcp_component .ev_threads [i ]);
718- opal_pointer_array_set_item (& mca_oob_tcp_component .ev_bases , i , NULL );
719- }
720- opal_argv_free (mca_oob_tcp_component .ev_threads );
721- }
722-
723693 if (ORTE_PROC_IS_HNP && mca_oob_tcp_component .listen_thread_active ) {
724694 mca_oob_tcp_component .listen_thread_active = false;
725695 /* tell the thread to exit */
@@ -1366,7 +1336,6 @@ static char **split_and_resolve(char **orig_str, char *name)
13661336
13671337static void peer_cons (mca_oob_tcp_peer_t * peer )
13681338{
1369- peer -> ev_base = NULL ;
13701339 peer -> auth_method = NULL ;
13711340 peer -> sd = -1 ;
13721341 OBJ_CONSTRUCT (& peer -> addrs , opal_list_t );
0 commit comments