# Multithreading and libsigc++

**URL:** <https://forums.synfig.org/t/multithreading-and-libsigc/13827>\
**Category:** Development\
**Created:** [February 6, 2023, 8:41am UTC](https://forums.synfig.org/t/multithreading-and-libsigc/13827 "2023-02-06T08:41:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hesham](https://forums.synfig.org/letter_avatar_proxy/v4/letter/h/ecb155/32.png) [@hesham](https://forums.synfig.org/u/hesham)\
**Post date:** [February 6, 2023, 8:41am UTC](https://forums.synfig.org/t/multithreading-and-libsigc/13827/1 "2023-02-06T08:41:39Z")

</div>

Libsigc++ is not thread safe. That is, it is not safe to connect/disconnect signals from multiple threads. I noticed however that is used widely in synfig-core. Is there any special way this is handled in synfig? It seems to me that this will eventually cause very hard to catch bugs.

[https://developer-old.gnome.org/gtkmm-tutorial/stable/sec-the-constraints.html.en](https://developer-old.gnome.org/gtkmm-tutorial/stable/sec-the-constraints.html.en)  
[https://ardour.org/development/signals](https://ardour.org/development/signals)

---

<div class="post-metadata">

**Author:** ![rodolforg](https://forums.synfig.org/letter_avatar_proxy/v4/letter/r/c68b51/32.png) [@rodolforg](https://forums.synfig.org/u/rodolforg)\
**Post date:** [February 20, 2023, 11:50am UTC](https://forums.synfig.org/t/multithreading-and-libsigc/13827/2 "2023-02-20T11:50:33Z")

</div>

> [@hesham](#):
>
> I noticed however that is used widely in synfig-core

libsigc++ is widely (and wildly 🙂 ) used, but AFAIK signal connection/disconnection is not.  
The multithread stuff in synfig are only rendering, and I don’t know if signal connection/disconnection happens while rendering, only when editing (in Synfig Studio).
