Skip to content
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

Closed
YOSI-yoshidayuji opened this issue Sep 11, 2023 · 5 comments
Labels
pending-action question Further information is requested

Comments

@YOSI-yoshidayuji
Copy link

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?

@YOSI-yoshidayuji YOSI-yoshidayuji added needs-triage question Further information is requested labels Sep 11, 2023
@niyatim23
Copy link
Contributor

Hi @YOSI-yoshidayuji, it is defined in the samples here:

// comment out this line to disable the feature
#define KVS_USE_SIGNALING_CHANNEL_THREADPOOL 1

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

@disa6302
Copy link
Contributor

@YOSI-yoshidayuji ,

It does seem we are missing the add definition in the CMake file. Thank you for pointing it out!
Would you like to open a PR with the flag change?

@YOSI-yoshidayuji
Copy link
Author

Thank you for your response.
According to the regulations of my organization, I do not wish to open in PR.

@disa6302
Copy link
Contributor

No problem :)
Keeping this ticket open till we have the cmake fix merged. Thanks for reporting again!

@niyatim23
Copy link
Contributor

We have a new CMake flag for this now ENABLE_KVS_THREADPOOL. Currently only available in develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-action question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants