Adding a utility function to get the shared thread already initialized