History log of /6.0.3/platform/src/config.cmake.h (Results 1 - 9 of 9)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v7.0.2, v6.6.1, v7.0.0, v6.5.1, v6.0.3, v5.5.4, v5.5.0, v4.6.5
# b5f07db5 16-Jan-2018 Jim Walker <jim@couchbase.com>

MB-24860: Add get_cpu_count and get_cpu_index

get_cpu_count returns the number of 'cores' installed in the system
get_cpu_index returns the index of the 'core' the caller is running on

MB-24860: Add get_cpu_count and get_cpu_index

get_cpu_count returns the number of 'cores' installed in the system
get_cpu_index returns the index of the 'core' the caller is running on

Together the methods are intended to assist in building core-local
storage, away to associate data with the running core

Change-Id: I68a4095d47d051660d3472b911053613638325d7
Reviewed-on: http://review.couchbase.org/87905
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


Revision tags: v5.0.0
# e6d9b496 30-Jan-2017 Trond Norbye <trond.norbye@gmail.com>

Remove define of NOMINMAX (added by tlm)

Change-Id: Ifd858bd562a9d16ebb292f87230740a76b3e7542
Reviewed-on: http://review.couchbase.org/72860
Tested-by: buildbot <build@couchbase.com>

Remove define of NOMINMAX (added by tlm)

Change-Id: Ifd858bd562a9d16ebb292f87230740a76b3e7542
Reviewed-on: http://review.couchbase.org/72860
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v4.6.0, v4.6.0-DP
# b20faafb 08-Sep-2016 Dave Rigby <daver@couchbase.com>

MB-20834: Add Couchbase::get_available_cpu_count

Add a new helper function to platform to return the number of logical
threads (CPUs) this process has access to - i.e. the maximum number

MB-20834: Add Couchbase::get_available_cpu_count

Add a new helper function to platform to return the number of logical
threads (CPUs) this process has access to - i.e. the maximum number of
concurrent threads of execution available.

This is essentially the code from memcached's
get_number_of_worker_threads(), enhanced to use sched_getaffinity() if
available. This is particularly important on Docker which uses cgroups
to control the number of CPUs the container has access to, and by not
using that, we create "too many" worker threads.

Change-Id: I3e3b91eecc51aea298ae9aceb9e8c6d3f16b7612
Reviewed-on: http://review.couchbase.org/67490
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Manu Dhundi <manu@couchbase.com>

show more ...


Revision tags: v4.5.1-MP1, v4.5.1, v4.5.0
# b3249292 08-Dec-2015 Dave Rigby <daver@couchbase.com>

Win32: Disable min/max macros by default

On Win32, when including a number of Windows headers the macros min / max
are defined. These conflict with modern C++ min / max functions
(e.

Win32: Disable min/max macros by default

On Win32, when including a number of Windows headers the macros min / max
are defined. These conflict with modern C++ min / max functions
(e.g. std::numeric_limits<T>::min()). Disable them by default by
#defining NOMINMAX before including Windows headers.

Change-Id: I20e1cc5389ca3d22585f5588fc59597964dc376e
Reviewed-on: http://review.couchbase.org/57527
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


# 66d1bc68 13-Oct-2015 Trond Norbye <trond.norbye@gmail.com>

Add return value for cb_set_thread_name

And add methods to:

* check if the platform supports it
* get the thread name

Change-Id: Idb7a9352b77a71b286826b0b4781f54831f4a2

Add return value for cb_set_thread_name

And add methods to:

* check if the platform supports it
* get the thread name

Change-Id: Idb7a9352b77a71b286826b0b4781f54831f4a26e
Reviewed-on: http://review.couchbase.org/56050
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v4.1.0, v3.1.2
# 504809a9 14-Jul-2015 Dave Rigby <daver@couchbase.com>

Unify internal_config.cmake.h and config.cmake.h

Both these files serve the same purpose - CMake-configured header
files used by the implementation of platform. Unify them into a single

Unify internal_config.cmake.h and config.cmake.h

Both these files serve the same purpose - CMake-configured header
files used by the implementation of platform. Unify them into a single
file.

Change-Id: I57fca452e277e1b71f1071d1d818fa5b1eb6e4ca
Reviewed-on: http://review.couchbase.org/53170
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


Revision tags: v3.0.3
# 9bcd6af3 06-Dec-2014 Trond Norbye <trond.norbye@gmail.com>

Drop platform specific versions of gethrtime()

Use the implementation from C++ unless the platform supports
a native one.

Change-Id: I480bbd8953ce6f3cfe27e9e0f4b8c9f6b30385ff

Drop platform specific versions of gethrtime()

Use the implementation from C++ unless the platform supports
a native one.

Change-Id: I480bbd8953ce6f3cfe27e9e0f4b8c9f6b30385ff
Reviewed-on: http://review.couchbase.org/44078
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v3.1.6, v3.0.0
# 4aae569d 26-Feb-2014 Trond Norbye <trond.norbye@gmail.com>

Allow the project to be built standalone

* Define all CMake macros used
* Add headerfiles to targets to make the visual
studio projects easier to navigate in

This informat

Allow the project to be built standalone

* Define all CMake macros used
* Add headerfiles to targets to make the visual
studio projects easier to navigate in

This information is used by the project settings

Change-Id: I0610ba57388c1f32141401486e1c26cb2e8ff034
Reviewed-on: http://review.couchbase.org/33929
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


# 73e41e75 09-Jan-2014 Trond Norbye <trond.norbye@gmail.com>

Use C++11 to implement gethrtime

Change-Id: I1a11ca271ed4b290e34190e3a1c35be48dec80f4
Reviewed-on: http://review.couchbase.org/31771
Tested-by: Trond Norbye <trond.norbye@gmail.com>

Use C++11 to implement gethrtime

Change-Id: I1a11ca271ed4b290e34190e3a1c35be48dec80f4
Reviewed-on: http://review.couchbase.org/31771
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...