-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION]The definition of KVS_USE_SIGNALING_CHANNEL_THREADPOOL is not found in the SDK build. #1803
Comments
Hi @YOSI-yoshidayuji, it is defined in the samples here: amazon-kinesis-video-streams-webrtc-sdk-c/samples/Samples.h Lines 59 to 60 in 15e6019
It seems like you're creating your own application is why it is missing for you. You can define it the similar to above from our sample application |
It does seem we are missing the add definition in the CMake file. Thank you for pointing it out! |
Thank you for your response. |
No problem :) |
We have a new CMake flag for this now |
README.md says "The threadpool is enabled by default," But I can't found add_definitions(-DKVS_USE_SIGNALING_CHANNEL_THREADPOOL) in CMakeLists.txt
I modified the function 'createSignalingSync' in Signaling.c for verification purposes.
#ifdef KVS_USE_SIGNALING_CHANNEL_THREADPOOL
printf( "threadpool create !\n" );
CHK_STATUS(threadpoolCreate(&pSignalingClient->pThreadpool, pClientInfo->signalingClientInfo.signalingMessagesMinimumThreads,
pClientInfo->signalingClientInfo.signalingMessagesMaximumThreads));
#else
printf( "No treadpool \n" );
#endif
When I build it normally, "No threadpool" is displayed. When I write add_definitions(-DKVS_USE_SIGNALING_CHANNEL_THREADPOOL), "threadpool create!" is displayed.
Am I misunderstanding something?
The text was updated successfully, but these errors were encountered: