head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.58 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.56 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.54 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.52 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.50 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.48 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.46 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.44 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.42 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.40 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.38 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.36 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.34 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.32 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.30 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.28 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.26 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.24 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.22 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.20 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.18 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.16 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.14 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.12 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.8 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.10 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.6 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.4 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.2 pkgsrc-2019Q1-base:1.1; locks; strict; comment @// @; 1.1 date 2019.01.13.18.21.24; author adam; state Exp; branches; next ; commitid R0ZpeMYFs9KXqE7B; desc @@ 1.1 log @ucommon: updated to 7.0.0 Changes from 6.6.0 to 7.0.0 - clean new library abi 8.0 - atomic typeref system completed, matches tychomt spec - c++11 support completed - deprecated functions and templates removed - deprecated modules (xml, persist) moved to commoncpp Changes from 6.5.7 to 6.6.0 - introduced rsa key support - expanded hmac support - expanded digests for sha256 and 384 - reword of common digest code - improved nullptr clang support - remove clang forced c++11 from build - check for openssl rsa support - port types for 7.0 migration - socket addresses for typeref - further c++11 header fixes - removed old ssl demo app Changes from 6.5.6 to 6.5.7 - improved c++11 support - mapped pointer introduced - fixed is usage - improved mapref remove Changes from 6.5.5 to 6.5.6 - simplified arrayref - added listref - map iterators thru locked instances - type standardization - socket address type Changes from 6.5.4 to 6.5.5 - more portable nullptr support - thread-safe mapref class - some typeref convenience types - bit operations on byterefs Changes from 6.5.3 to 6.5.4 - secure string and key management types - better cleanup of secure objects - file i/o for heap temporary Changes from 6.5.2 to 6.5.3 - arrayref now uses ConditionalAccess, fix for Conditional Changes from 6.5.1 to 6.5.2 - memory management cleanup and mingw32 support for native conditionals - new methodology of having getaddrinfo allocate memory - introduction of queueref and stackref; arrayref becomes useful - typeref concatenation operators Changes from 6.5.0 to 6.5.1 - thread shared references added Changes from 6.4.4 to 6.5.0 - typeref expanded - arrayref introduced - nullptr and other c++ modernizations - clang now defaulted to c++11 - minimum native windows now requires conditionals - mingw has to use win32 pthread support - somewhat more usable heap temporary templates Changes from 6.4.3 to 6.4.4 - additional typeref operators Changes from 6.4.2 to 6.4.3 - fix for broken windows setuid macro Changes from 6.4.1 to 6.4.2 - solaris related cmake fixes - cleanup of test build and osx fixes Changes from 6.4.0 to 6.4.1 - keyfile fixed constructor issue Changes from 6.3.6 to 6.4.0 - new typeref system for immutable atomic reference counted objects - heap management objects support moving heap through assignment - extended unit tests for typeref system - improved openbsd support - atomics enabled by default Changes from 6.3.5 to 6.3.6 - code cleanup - simulate option for scrub - set newline style for cmake genorated files Changes from 6.3.4 to 6.3.5 - general code cleanup - some build fixes Changes from 6.3.3 to 6.3.4 - improved atomics support - configure atomics default matches cmake default - general code cleanup - more casting operations and cast fixups - polymorphic casting support & rtti detection - enclose random value templates in Random - improved rng support Changes from 6.3.2 to 6.3.3 - improved cipher key management - b64 support improved and string hex conversions - simplified digest functions - some solaris fixes Changes from 6.3.1 to 6.3.2 - fixed a broken streambuf for commoncpp - deref cast function added - fixed missing pkg-config @ text @$NetBSD$ Fix building on Darwin. --- corelib/thread.cpp.orig 2019-01-13 16:03:59.000000000 +0000 +++ corelib/thread.cpp @@@@ -27,6 +27,11 @@@@ #include #include +#if defined(__APPLE__) +#include +#include +#endif + #if _POSIX_PRIORITY_SCHEDULING > 0 #include static int realtime_policy = SCHED_FIFO; @@@@ -1287,7 +1292,11 @@@@ void Thread::init(void) size_t Thread::cache(void) { +#if defined(__APPLE__) + static size_t line_size = 0; +#else static volatile size_t line_size = 0; +#endif if(line_size) return line_size; @@@@ -1311,7 +1320,6 @@@@ size_t Thread::cache(void) free(buffer); return line_size; #elif defined(__APPLE__) - size_t line_size = 0; size_t sizeof_line_size = sizeof(line_size); sysctlbyname("hw.cachelinesize", &line_size, &sizeof_line_size, 0, 0); return line_size; @