Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jun 30, 2015
  1. @dcreager

    Merge pull request #103 from redjack/feature/static-template

    dcreager authored
    Use cmake helper macros
  2. @dcreager

    Merge remote-tracking branch 'template/c-template' into feature/stati…

    dcreager authored
    …c-template
    
    * template/c-template:
      Use all LDFLAGS when linking via pkgconfig
      Fix macros for cmake 2.8.7
      Enable static libraries
      Add cmake helper macros
Commits on Jun 29, 2015
  1. @dcreager

    Use all LDFLAGS when linking via pkgconfig

    dcreager authored
    As one example, the Ubuntu pkgconfig file for check includes a
    `-pthread` switch, which cmake doesn't pass through if we use the
    `_LIBRARIES` variable instead of the `_LDFLAGS` variable.
  2. @dcreager

    Merge pull request #104 from redjack/feature/debug-assert

    dcreager authored
    Debug allocator should always abort
  3. @dcreager

    Debug allocator should always abort

    dcreager authored
    We provide a "debug" allocator, which verifies that the sizes that you
    provide to the allocation functions matches the sizes that you provide
    to the deallocation functions.  Before, we used the builtin `assert`
    macro to perform this check.  However, that means that if we compile
    libcork in `Release` mode (in which asserts are left out), we never
    actually perform the check!  We now use an explicit check, and call
    `abort` ourselves if the check fails — our assumption being that if you
    ask for the debug allocator, you want at least this particular bit of
    debug behavior even if the rest of the library was compiled in `Release`
    mode.
  4. @dcreager

    Merge pull request #105 from redjack/feature/bitset-timeout

    dcreager authored
    Higher timeout for bitset tests
  5. @dcreager

    Higher timeout for bitset tests

    dcreager authored
    This test can take awhile, which sometimes causes a spurious test
    failure when running under Travis.  Let's bump the timeout to give us
    more wiggle room.
Commits on Jun 26, 2015
  1. @dcreager

    Fix macros for cmake 2.8.7

    dcreager authored
    We need to be careful about when we're passing the `__SOURCES` variable
    as a list (and therefore don't want to quote it).  We can't use
    `target_include_directories` before 2.8.12, and need to fall back on
    `include_directories` if it isn't available.  And we have to explicitly
    include the file that defines `cmake_parse_arguments` on some earlier
    cmake versions (although I'm not sure precisely where the boundary is).
Commits on Jun 25, 2015
  1. @dcreager

    Merge pull request #102 from redjack/feature/version

    dcreager authored
    Library version API
  2. @dcreager

    Merge pull request #13 from redjack/feature/static

    dcreager authored
    Enable static libraries
  3. @dcreager

    Enable static libraries

    dcreager authored
    The new ENABLE_SHARED, ENABLE_SHARED_EXECUTABLES, and ENABLE_STATIC
    cmake flags give you full control over whether to build shared and/or
    static libraries, and whether to link any executables against shared
    libraries or static.
  4. @dcreager

    Add cmake helper macros

    dcreager authored
    Instead of having to copy-paste all of the cmake magic for finding
    prereqs and building our libraries and programs, lets add a handful of
    helper macros that encapsulate the details.
Commits on Jun 18, 2015
  1. @dcreager

    Library version API

    dcreager authored
    We now provide access to the libcork version number using both
    compile-time macros and runtime functions.  Right now only the macros
    support comparison, using the common (major*1000000 + minor*1000 +
    patch) pattern.
  2. @dcreager

    Merge remote-tracking branch 'template/c-template' into feature/version

    dcreager authored
    * template/c-template:
      Separate out major/minor/patch versions
  3. @dcreager

    Merge pull request #12 from redjack/feature/version

    dcreager authored
    Separate out major/minor/patch versions
  4. @dcreager

    Separate out major/minor/patch versions

    dcreager authored
    Our template already grabs the current version from git tags.  We now
    also separate this out in major, minor, and patch versions, stored in
    the `VERSION_MAJOR`, `VERSION_MINOR`, and `VERSION_PATCH` cmake
    variables, respectively.  We also grab the SHA-1 identifier of the
    current git commit and store that in the `GIT_SHA1` variable.
    
    (Note that this means that the cmake scripts only work from a valid git
    checkout.  The version detection tries to support working from a release
    tarball, as well, but we don't currently have a good mechanism for
    generating one of those.  Once we do, we should tweak all of this to
    work there, too.)
  5. @dcreager

    Merge pull request #100 from redjack/feature/static

    dcreager authored
    Enable static libraries
  6. @dcreager

    Enable static libraries

    dcreager authored
    The new ENABLE_SHARED, ENABLE_SHARED_EXECUTABLES, and ENABLE_STATIC
    cmake flags give you full control over whether to build shared and/or
    static libraries, and whether to link any executables against shared
    libraries or static.
Commits on Mar 12, 2015
  1. @dcreager

    Merge branch 'release/0.14.3' into develop

    dcreager authored
    * release/0.14.3:
      Release 0.14.3
  2. @dcreager

    Release 0.14.3

    dcreager authored
Commits on Mar 10, 2015
  1. @dcreager

    Merge pull request #98 from redjack/feature/cwd-check

    dcreager authored
    Correctly check absolute paths
  2. @dcreager

    Merge pull request #99 from redjack/feature/travis-ci

    dcreager authored
    Run tests with Travis CI
  3. @dcreager

    Test on OS X via Travis

    dcreager authored
    Travis also [supports](http://docs.travis-ci.com/user/multi-os/)
    building on OS X.
  4. @dcreager

    Run tests with Travis CI

    dcreager authored
    Use [Travis CI](https://travis-ci.org) to build pull requests and
    branches.  Travis only provides 64-bit build VMs, so we use some
    multilib magic to test both 32- and 64-bit builds.
Commits on Mar 3, 2015
  1. @dcreager

    Merge branch 'release/0.14.2' into develop

    dcreager authored
    * release/0.14.2:
      Release 0.14.2
  2. @dcreager

    Release 0.14.2

    dcreager authored
Commits on Mar 2, 2015
  1. @dcreager

    Merge pull request #97 from redjack/thread-name

    dcreager authored
    Register thread names with OS
  2. @dcreager

    Register thread names with OS

    dcreager authored
    Each `cork_thread` instance already has a name, so we might as well
    register that name with the OS.
Commits on Feb 19, 2015
  1. @dcreager

    Merge pull request #96 from codeslinger/fix-use-after-free

    dcreager authored
    Fix use-after-free when entries deleted during map operation
Commits on Nov 1, 2014
  1. @dcreager

    Merge branch 'release/0.14.1' into develop

    dcreager authored
    * release/0.14.1:
      Release 0.14.1
  2. @dcreager

    Release 0.14.1

    dcreager authored
Commits on Oct 31, 2014
  1. @dcreager

    Merge branch 'feature/strndup' into develop

    dcreager authored
    * feature/strndup:
      cork_strndup should copy entire string
  2. @dcreager

    cork_strndup should copy entire string

    dcreager authored
    The `cork_strndup` and `cork_xstrndup` functions were using `strncpy`
    under the covers to make the copy of the incoming string.  This
    truncates the copy at the first NUL byte.  We want to copy the whole
    thing, so we should use `memcpy` instead.
Commits on Oct 27, 2014
  1. @dcreager

    Merge branch 'feature/no-mempool' into develop

    dcreager authored
    * feature/no-mempool:
      Don't use mempool in cork_hash_table
Commits on Oct 24, 2014
  1. @dcreager

    Don't use mempool in cork_hash_table

    dcreager authored
    Before we were using a `cork_mempool` to allocate all of the entries
    that are stored in a hash table.  This reduces the number of times that
    we have to call `malloc`, but currently the mempool implementation isn't
    able to return memory to the OS.  That makes it less than ideal for a
    hash table that grows and shrinks during its existence.
    
    Plus, now that we have customizable allocation, a better approach is for
    your application to use a better `malloc` implementation, like jemalloc
    or tcmalloc.
Something went wrong with that request. Please try again.