Andrew Wong has uploaded this change for review. ( http://gerrit.cloudera.org:8080/15270
Change subject: [subprocess] use a CountDownLatch ...................................................................... [subprocess] use a CountDownLatch As follow-up to 20be5d957ab80c7c0ed8eaf62324ac70940d7543, this converts the atomic boolean that signals a shutdown in the SubprocessServer to a CountDownLatch. This allows us to combine some of the sleeps with the shutdown checks. To do this, I had to update the CountDownLatch::WaitFor() methods to return whether they actually counted down. Change-Id: I1adfdf3a9ccb6e8ee8c60cfab68562dde3e642d6 --- M src/kudu/subprocess/server.cc M src/kudu/subprocess/server.h M src/kudu/util/countdown_latch.h 3 files changed, 26 insertions(+), 22 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/70/15270/1 -- To view, visit http://gerrit.cloudera.org:8080/15270 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I1adfdf3a9ccb6e8ee8c60cfab68562dde3e642d6 Gerrit-Change-Number: 15270 Gerrit-PatchSet: 1 Gerrit-Owner: Andrew Wong <[email protected]>
