1. 15 Feb, 2012 12 commits
  2. 14 Feb, 2012 3 commits
  3. 13 Feb, 2012 2 commits
  4. 12 Feb, 2012 1 commit
  5. 11 Feb, 2012 4 commits
  6. 10 Feb, 2012 2 commits
  7. 08 Feb, 2012 5 commits
  8. 07 Feb, 2012 2 commits
  9. 04 Feb, 2012 3 commits
  10. 03 Feb, 2012 6 commits
    • Pieter Hintjens's avatar
      Merge pull request #235 from skaller/master · 9dab56c1
      Pieter Hintjens authored
      Thread Safe Sockets.
      9dab56c1
    • Pieter Hintjens's avatar
      Merge pull request #234 from ianbarber/master · cbf6126b
      Pieter Hintjens authored
      Semicolon missing
      cbf6126b
    • Pieter Hintjens's avatar
      Merge pull request #236 from danielnorberg/master · 935f1748
      Pieter Hintjens authored
      add missing semicolon
      935f1748
    • Daniel Norberg's avatar
      add missing semicolon · 67fd4c9a
      Daniel Norberg authored
      67fd4c9a
    • skaller's avatar
      Set and arrange propagation of thread safe sockets flag. · 520ad3c2
      skaller authored
      We use a distinct context initialisation function to specify
      all sockets derived therefrom will be thread safe.
      
      However the inheritance is done exclusively in the C interface.
      This is not really correct, but it is chosen to minimise
      interference with the existing C++ code, including any
      construct or other calls within the C++ code base.
      Semantically the C++ code should be unchanged,
      physically some data structures and extra methods are
      provided by they're only used from the C binding.
      520ad3c2
    • skaller's avatar
      Thread Safe Sockets. · 988efbc7
      skaller authored
      1. Reorganise C API socket functions to eliminate bad practice
      of public functions calling other public functions. This should
      be done for msg's too but hasn't been in this patch.
      
      2. Reorganise code in C API socket functions so that the
      socket is cast on one line, the C++ function called on
      the next with the result retained, then the result is returned.
      
      This makes the code much simpler to read and also allows
      pre- and post- call hooks to be inserted easily.
      
      3. Insert pre- and post- call hooks which set and release
      a mutex iff the thread_safe flag is on.
      
      4. Add the thread_safe_flag to base_socket_t initialised to
      false to preserve existing semantics. Add an accessor for
      the flag, add a mutex, and add lock and unlock functions.
      
      Note: as yet no code to actually set the flag.
      988efbc7