nerdclub-tfg / signal-bot

A bot for signal - NOT MAINTENANCE
GNU Affero General Public License v3.0
28 stars 6 forks source link

thread safety of send operations #19

Open Trolldemorted opened 6 years ago

Trolldemorted commented 6 years ago

In our scenario we are using a thread to listen for certain system events, and have to to send messages from that thread.

Is it safe to call SignalConnection's sendMessage functions from a separate thread?

Turakar commented 6 years ago

I was busy in the last time, sorry for the delay. I'm unsure if the underlying libsignal is thread safe and would guess it is not. This would require some sort of queue in SignalConnection which is processed by the main thread.