~rogpeppe/gozk/factor-out-service

  • Committer: Gustavo Niemeyer
  • Date: 2010-12-13 13:07:32 UTC
  • Revision ID: gustavo@niemeyer.net-20101213130732-1ppjruxb14hghlad
Use 'while' with pthread_cond_wait, rather than 'if'.  Even though
there's a single consumer, spurious wakeups [1] might signal the
thread without any elements in the queue.

[1] http://en.wikipedia.org/wiki/Spurious_wakeup
Filename Latest Rev Last Changed Committer Comment Size
..
.bzrignore 1 13 years ago Gustavo Niemeyer Importing complete first release implementation in 46 bytes Diff Download File
example.go 2 13 years ago Gustavo Niemeyer Adding example.go. 656 bytes Diff Download File
gozk.go 5 13 years ago Gustavo Niemeyer Use 'while' with pthread_cond_wait, rather than 'i 30.9 KB Diff Download File
gozk_test.go 3 13 years ago Gustavo Niemeyer Moving code out of src/, to help with godoc. 13.4 KB Diff Download File
helpers.c 5 13 years ago Gustavo Niemeyer Use 'while' with pthread_cond_wait, rather than 'i 2.6 KB Diff Download File
LICENSE 4 13 years ago Gustavo Niemeyer Adding LICENSE to the code base. 7.4 KB Diff Download File
Makefile 3 13 years ago Gustavo Niemeyer Moving code out of src/, to help with godoc. 150 bytes Diff Download File
README 1 13 years ago Gustavo Niemeyer Importing complete first release implementation in 39 bytes Diff Download File
retry_test.go 3 13 years ago Gustavo Niemeyer Moving code out of src/, to help with godoc. 8.8 KB Diff Download File
suite_test.go 3 13 years ago Gustavo Niemeyer Moving code out of src/, to help with godoc. 5.2 KB Diff Download File