Skip to content

Commit ac538df

Browse files
authored
Merge pull request #136 from willstott101/bugfix/topic-listener-deadlock
Release GIL when creating topics
2 parents 65cb2aa + 150d261 commit ac538df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clayer/pysertype.c

+2
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,9 @@ ddspy_topic_create(PyObject *self, PyObject *args)
975975

976976
if (sertype == NULL) return NULL;
977977

978+
Py_BEGIN_ALLOW_THREADS
978979
sts = dds_create_topic_sertype(participant, name, (struct ddsi_sertype **) &sertype, qos, listener, NULL);
980+
Py_END_ALLOW_THREADS
979981

980982
if (PyErr_Occurred() || sts < 0) {
981983
ddsi_sertype_unref((struct ddsi_sertype *) sertype);

0 commit comments

Comments
 (0)