commit | 00db9daab0b42fed8cf45288624889adad42cb35 | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@boson> | Sun Sep 21 17:42:34 2008 -0400 |
committer | Jean-Paul Calderone <exarkun@boson> | Sun Sep 21 17:42:34 2008 -0400 |
tree | 542d11a6cb43d0d2b4ddc6adec220c1eed7c56e5 | |
parent | f1b839dccf33b12f9100ffa91d45b4d1b9167adf [diff] [blame] |
Use TLS for the PyThreadState pointer instead of a field on Connection; this allows a Connection to be used safely in multiple threads concurrently
diff --git a/src/ssl/connection.h b/src/ssl/connection.h index dedb73e..13f42f0 100644 --- a/src/ssl/connection.h +++ b/src/ssl/connection.h
@@ -42,7 +42,7 @@ SSL *ssl; ssl_ContextObj *context; PyObject *socket; - PyThreadState *tstate; + PyThreadState *tstate; /* This field is no longer used. */ PyObject *app_data; } ssl_ConnectionObj;