-
Notifications
You must be signed in to change notification settings - Fork 35
Enable pool scalable on Windows #251
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
Enable pool scalable on Windows #251
Conversation
618ad71
to
fc6bb89
Compare
@@ -62,11 +65,20 @@ static struct tbb_callbacks g_tbb_ops; | |||
static UTIL_ONCE_FLAG tbb_is_initialized = UTIL_ONCE_FLAG_INIT; | |||
static bool Init_tbb_global_state_failed; | |||
|
|||
#ifdef _WIN32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move this somewhere to utils and implement OS abstraction layer for such functionality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totally agree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vinser52 is it OK now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Done.
@@ -62,11 +65,20 @@ static struct tbb_callbacks g_tbb_ops; | |||
static UTIL_ONCE_FLAG tbb_is_initialized = UTIL_ONCE_FLAG_INIT; | |||
static bool Init_tbb_global_state_failed; | |||
|
|||
#ifdef _WIN32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totally agree
ff94160
to
6c817a6
Compare
6c817a6
to
e9d822b
Compare
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
e9d822b
to
c578540
Compare
c578540
to
df4223c
Compare
@bratpiorka Done |
Signed-off-by: Lukasz Dorau <[email protected]>
Replace strcpy() with util_strncpy() in the base example. Signed-off-by: Lukasz Dorau <[email protected]>
Add util_open_library(), util_close_library() and util_get_symbol_addr() to utils_load_library.h Including this header forces linking with libdl on Linux. Signed-off-by: Lukasz Dorau <[email protected]>
Signed-off-by: Lukasz Dorau <[email protected]>
CMAKE_PREFIX_PATH can contain many paths separated with semicolon, so using the expressions like: ${CMAKE_PREFIX_PATH}/include or ${CMAKE_PREFIX_PATH}/bin is incorrect, because a subdirectory would be appended only to the last path. Signed-off-by: Lukasz Dorau <[email protected]>
Add looking for the tbbmalloc library and the <tbb/scalable_allocator.h> header. Signed-off-by: Lukasz Dorau <[email protected]>
df4223c
to
6d42200
Compare
Signed-off-by: Lukasz Dorau <[email protected]>
Signed-off-by: Lukasz Dorau <[email protected]>
6d42200
to
948f131
Compare
No description provided.