1. 14 Oct, 2019 1 commit
    • Vitali Lovich's avatar
      Suppress MSVC warnings in headers files · 93e5be76
      Vitali Lovich authored
      For Visual Studio we have to wrap the headers with push/pop pragmas
      at the top and bottom of the file.
      
      Define common macros for suppress/unsuppress KJ & the appropriate macros
      for CAPNP begin/end header wrappers. Because there's a chicken egg
      problem the KJ_BEGIN_HEADER/CAPNP_BEGIN_HEADER macros are placed below
      all includes to ensure that the appropriate common.h file has been
      sourced.
      93e5be76
  2. 08 Jul, 2019 3 commits
  3. 01 Jul, 2019 1 commit
    • Kenton Varda's avatar
      Add `Locked<T>::wait()`, an alternate interface to condvars. · 2625589f
      Kenton Varda authored
      This is better than `MutexGuarded<T>::when()` in cases where the caller already has a lock -- `when()` would require unlocking, then immediately locking again (to check the predicate).
      
      Possibly `when()` should be removed in favor of `wait()`.
      2625589f
  4. 19 Jun, 2019 1 commit
  5. 17 Jun, 2019 4 commits
  6. 01 Apr, 2019 1 commit
    • Kenton Varda's avatar
      Add `ExternalMutexGuarded<T>`. · 62a493ca
      Kenton Varda authored
      This class lets you hold a temporary value that is only safe to access under lock, while you release the lock to do some other work.
      62a493ca
  7. 26 Aug, 2018 1 commit
  8. 11 Jan, 2018 1 commit
    • Kenton Varda's avatar
      Replace all include guards with #pragma once. · 677a52ab
      Kenton Varda authored
      @kloepper pointed out a while back that every compiler you've ever heard of supports this. Plus, it's more concise, it's not prone to copy-paste errors, and it looks nicer.
      
      At the time I wanted to remain consistent and I didn't feel like spending the time to update all my existing code. But, every time I've added a new header since I've cursed the include guard, so I finally broke down and changed it.
      677a52ab
  9. 20 Jul, 2017 1 commit
  10. 30 Mar, 2017 1 commit
  11. 22 Nov, 2014 2 commits
  12. 20 Jun, 2014 1 commit
    • Kenton Varda's avatar
      Change license to MIT. · 889204fe
      Kenton Varda authored
      For portions currently copyright by Kenton (most of it), transfer copyright to Sandstorm Development Group, Inc. (Kenton's company).
      
      The license change is practically meaningless, as MIT and BSD 2-clause are legally equivalent. However, the BSD 2-clause license is sometimes confused for its ugly siblings, BSD 3-clause and BSD 4-clause. The MIT license is more immediately recognizeable for what it is.
      
      Rémy Blank and Jason Choy (the two non-trivial contributors) are on record as approving this change:
      
      https://groups.google.com/d/msg/capnproto/xXDd2HUOCcc/gbe_COIuXKYJ
      889204fe
  13. 15 Nov, 2013 1 commit
  14. 12 Sep, 2013 1 commit
  15. 23 Aug, 2013 1 commit
  16. 06 Aug, 2013 1 commit
    • Kenton Varda's avatar
      Arrange for compiler to send to the code generator the complete contents of all… · 7b59b551
      Kenton Varda authored
      Arrange for compiler to send to the code generator the complete contents of all files listed on the command line, all first-level dependencies of those files, and parent scopes of those dependencies, but nothing more.  This means it's sometimes possible to compile a schema file without parsing all transitive dependencies.  Also, in 'decode' mode, don't compile annotations, so that the files defining those annotations need not be opened at all.
      7b59b551
  17. 23 Jul, 2013 2 commits
  18. 20 Jul, 2013 1 commit
  19. 19 Jul, 2013 1 commit
  20. 18 Jul, 2013 3 commits
  21. 17 Jul, 2013 1 commit