awslabs / amazon-kinesis-video-streams-webrtc-sdk-c

Amazon Kinesis Video Streams Webrtc SDK is for developers to install and customize realtime communication between devices and enable secure streaming of video, audio to Kinesis Video Streams.
https://awslabs.github.io/amazon-kinesis-video-streams-webrtc-sdk-c/group__PublicMemberFunctions.html
Apache License 2.0
1.01k stars 304 forks source link

[Bug]: how to ensure the functon "wakeLwsServiceEventLoop " thread safety,because of "lws_callback_on_writable" is not thread-safe #1996

Closed fys85 closed 3 months ago

fys85 commented 3 months ago

Please confirm you have already done the following

Please answer the following prompt

Describe the bug

as said ,lws_callback_on_writable is not thread-safe, so how to we ensure wakeLwsServiceEventLoop thread-safe

Expected Behavior

wakeLwsServiceEventLoop is thread-safe

Current Behavior

wakeLwsServiceEventLoop is not thread-safe

Reproduction Steps

wakeLwsServiceEventLoop is call in multi thread

WebRTC C SDK version being used

1.7.3

If it was working in a previous version, which one?

No response

Compiler and Version used

.

Operating System and version

arm

Platform being used

arm

fys85 commented 3 months ago

cancle