1. 25 Oct, 2017 1 commit
    • f18m's avatar
      Change ZMQ_THREAD_AFFINITY to… · 2aa0e6fd
      f18m authored
      Change ZMQ_THREAD_AFFINITY to ZMQ_THREAD_AFFINITY_CPU_ADD/ZMQ_THREAD_AFFINITY_CPU_REMOVE. Avoid prefix thread names when no prefix was set.
      2aa0e6fd
  2. 16 Oct, 2017 1 commit
    • f18m's avatar
      Background threads enhancements (#2778) · bfbb4ff2
      f18m authored
      * Background thread scheduling 
      
      - add ZMQ_THREAD_AFFINITY ctx option; set all thread scheduling options
      from the context of the secondary thread instead of using the main
      process thread context!
      - change ZMQ_THREAD_PRIORITY to support setting NICE of the background
      thread when using SCHED_OTHER
      bfbb4ff2
  3. 03 Oct, 2017 1 commit
    • Christopher Hall's avatar
      add __FreeBSD__ to ifdefs · 997825bd
      Christopher Hall authored
      On FreeBSD the sysmbol __FreeBSD_kernel__ is only defines if a
      specific param.h file is included, unlike Debian/kFreeBSD where this
      symbol is always defined.  So also compile the FreeBSD specific code
      if __FreeBSD__ is defined for FreeBSD 11 & 12 compatibility.
      Signed-off-by: 's avatarChristopher Hall <hsw@ms2.hinet.net>
      997825bd
  4. 25 Aug, 2017 1 commit
  5. 12 Mar, 2017 2 commits
    • Luca Boccassi's avatar
      Problem: I can't refactor · 092ad50b
      Luca Boccassi authored
      Solution: fix ifdef check for pthread_setname
      092ad50b
    • Luca Boccassi's avatar
      Problem: ZMQ background threads are unnamed · 3ab4796c
      Luca Boccassi authored
      Solution: use pthread API to set the name. For now call every thread
      "ZMQ b/g thread". Would be nice to number the I/O threads and name
      explicitly the reaper thread, but in reality a bit of internal API
      churn would be necessary, so perhaps it's not worth it.
      This is useful when debugging a process with many threads.
      3ab4796c
  6. 05 Nov, 2016 1 commit
  7. 14 May, 2016 1 commit
  8. 12 May, 2016 1 commit
    • hitstergtd's avatar
      Problem: scheduling parameters unused on OSX · e946b0d1
      hitstergtd authored
      Solution:
      Mark them with LIBZMQ_UNUSED macro as per convention; although in future the
      appropriate pthread code should be updated to support thread scheduling
      priorities (for Mac OS X, et. al.)
      e946b0d1
  9. 02 Apr, 2016 1 commit
  10. 18 Feb, 2016 1 commit
  11. 07 Feb, 2016 1 commit
  12. 28 Jan, 2016 1 commit
  13. 20 Jan, 2016 1 commit
  14. 20 Aug, 2015 1 commit
  15. 02 Jun, 2015 2 commits
  16. 22 Jan, 2015 1 commit
  17. 24 Jul, 2014 1 commit
    • Ewen McNeill's avatar
      z/OS: Skip pthread_{get,set}schedparam · 501666d0
      Ewen McNeill authored
      Updated:
          src/thread.cpp: On older z/OS UNIX System Services,
              pthread_{get,set}schedparam is not present (searching the
              Internet suggests it may be present in later version than
              the one being used for z/OS UNIX System Services porting).
      
              Make zmq::thread_t::setSchedulingParameters() a no-op on
              z/OS UNIX System Services.
      
          NOTE: pthread_{get,set}schedparam appear to have been introduced
          by POSIX.1-2001 or IEEE 1003.1-2004 so may not be universally
          available, and thus more platforms may need this "no-op" treatment.
      501666d0
  18. 02 Jul, 2014 1 commit
  19. 25 Jun, 2014 2 commits
    • Pieter Hintjens's avatar
      Code cleanups · 2524e268
      Pieter Hintjens authored
      2524e268
    • Joel Lauener's avatar
      Allow change of pthread priority · 112ef6f1
      Joel Lauener authored
      Rationale: In a real-time environment it is sometime mandatory to tune
      threads priority and scheduling policy. This is required by our users
      who mixes real-time and server threads within
      the same process. It's not planned to support this on non-pthread
      platforms (e.g. Windows).
      112ef6f1
  20. 03 Feb, 2014 1 commit
  21. 02 Jan, 2014 1 commit
  22. 12 Mar, 2013 1 commit
    • Pieter Hintjens's avatar
      Removed corporate advertisements from source file headers · f0f16505
      Pieter Hintjens authored
      Copyrights had become ads for Sustrik's corporate sponsors, going against the original
      agreement to share copyrights with the community (that agreement was: one line stating
      iMatix copyright + one reference to AUTHORS file). The proliferation of corporate ads
      is also unfair to the many individual authors. I've removed ALL corporate title from
      the source files so the copyright statements can now be centralized in AUTHORS and
      source files can be properly updated on an annual basis.
      f0f16505
  23. 19 Feb, 2013 1 commit
  24. 14 Mar, 2012 1 commit
    • boris@boressoft.ru's avatar
      Add WinCE support. · 318ba883
      boris@boressoft.ru authored
      * Added two new files: errno.hpp and errno.cpp. They are required to use errno functionality on WM.
      * zmq.cpp, msg.h: removed inclusion of errno.h because it is included in zmq.h that is also included by .cpp.
      * windows.hpp: process.h is included only for desktop builds.
      * thread.cpp: on CE CreateThread is used instead of __beginthreadex
      * socket_base.cpp, clock.cpp: on CE include cmnintrin.h instead on intrin.h
      * signaler.cpp: on Windows should use special macro around event name (for unicode builds)
      * err.hpp: make it include errno.hpp (my file) instead on errno.h when building for CE
      * err.cpp: use FormatMessage when building for CE (because CE does not have ANSI API functions)
      * zmq.h: do not include errno.h whe building for CE
      * libzmq.vcproj: add tro new files
      318ba883
  25. 01 Nov, 2011 1 commit
  26. 31 Oct, 2011 1 commit
  27. 15 Aug, 2011 1 commit
  28. 29 Jun, 2011 1 commit
  29. 04 Apr, 2011 1 commit
  30. 02 Apr, 2011 1 commit
  31. 02 Mar, 2011 1 commit
  32. 29 Nov, 2010 1 commit
  33. 27 Nov, 2010 1 commit
  34. 30 Oct, 2010 1 commit
  35. 25 Aug, 2010 1 commit
    • Martin Sustrik's avatar
      WIP: Socket migration between threads, new zmq_close() semantics · 05d90849
      Martin Sustrik authored
      Sockets may now be migrated between OS threads; sockets may not be used by
      more than one thread at any time. To migrate a socket to another thread the
      caller must ensure that a full memory barrier is called before using the
      socket from the target thread.
      
      The new zmq_close() semantics implement the behaviour discussed at:
      
      http://lists.zeromq.org/pipermail/zeromq-dev/2010-July/004244.html
      
      Specifically, zmq_close() is now deterministic and while it still returns
      immediately, it does not discard any data that may still be queued for
      sending. Further, zmq_term() will now block until all outstanding data has
      been sent.
      
      TODO: Many bugs have been introduced, needs testing. Further, SO_LINGER or
      an equivalent mechanism (possibly a configurable timeout to zmq_term())
      needs to be implemented.
      05d90849
  36. 05 Jan, 2010 1 commit
  37. 29 Aug, 2009 1 commit