* runtime/dyninst/transport.c: Split the thread starting code out from
_stp_dyninst_transport_session_init() into
_stp_dyninst_transport_session_start().
* runtime/dyninst/transport.h: Add _stp_dyninst_transport_session_start()
prototype.
* runtime/dyninst/common_session_state.h (stp_session_init): Calls
_stp_dyninst_transport_sesion_init().
* runtime/dyninst/runtime.h (stp_dyninst_session_init_finished): Calls
_stp_dyninst_transport_session_start().
}
#endif
- return 0;
+ return _stp_dyninst_transport_session_init();
}
static int stp_session_init_finished(void)
* caused the base address of the shared memory to move around,
* which would cause the addresses of the mutexes to move
* around. */
- return _stp_dyninst_transport_session_init();
+ return _stp_dyninst_transport_session_start();
}
void stp_dyninst_session_exit(void)
}
}
+ return 0;
+}
+
+static int _stp_dyninst_transport_session_start(void)
+{
+ int rc;
+
// Start the thread.
rc = pthread_create(&_stp_transport_thread, NULL,
&_stp_dyninst_transport_thread_func, NULL);
static int _stp_dyninst_transport_session_init(void);
+static int _stp_dyninst_transport_session_start(void);
+
static int _stp_dyninst_transport_init(const char *name);
static int _stp_dyninst_transport_write_oob_data(char *buffer, size_t bytes);