You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to continuously ping the gstd server in an other thread.
I had a look at the code and it seems that it is, as a new socket is created for each communication with gstd. But then can you guarantee that it will stay that way ?
Thanks.
The text was updated successfully, but these errors were encountered:
Hey @MaxandreOgeret sorry for the slow response. There are two things two consider:
By default, the TCP server in Gstd is allowed to spawn as many threads as it needs. This means that, effectively, two requests may be taking place simultaneously. You may limit the number of simultaneous threads with the --tcp-max-threads option to 1, for example, and make sure all requests are serialized.
On the other hand, the ping command internally just tries to list the available pipelines, which is a thread safe operation. The pipeline list is locked every time it is read or modified.
Hello,
I would like to know if the python libgstc function is thread safe.
gstd-1.x/libgstc/python/pygstc/gstc.py
Line 258 in a011aff
I want to continuously ping the gstd server in an other thread.
I had a look at the code and it seems that it is, as a new socket is created for each communication with gstd. But then can you guarantee that it will stay that way ?
Thanks.
The text was updated successfully, but these errors were encountered: