From: Mark Slee Date: Thu, 2 Aug 2007 06:37:40 +0000 (+0000) Subject: Typo and comment fix X-Git-Tag: 0.2.0~1283 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=17496a04d61a5ed0dbece2d5067135871a526da4;p=common%2Fthrift.git Typo and comment fix Reviewed By: marc git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665189 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/concurrency/PosixThreadFactory.h b/lib/cpp/src/concurrency/PosixThreadFactory.h index 9a9e2afc..0f12fc93 100644 --- a/lib/cpp/src/concurrency/PosixThreadFactory.h +++ b/lib/cpp/src/concurrency/PosixThreadFactory.h @@ -63,12 +63,7 @@ class PosixThreadFactory : public ThreadFactory { * when it completes. A detachable thread is not joinable. The join method * of a detachable thread will return immediately with no error. * - * Joinable threads will detach themselves iff they were not explicitly joined and - * there are no remaining strong references to the thread. This guarantees that - * joinnable threads don't leak resources even when the application neglects to - * call join explicitly. - * - * By default threads are joinable. + * By default threads are not joinable. */ PosixThreadFactory(POLICY policy=ROUND_ROBIN, PRIORITY priority=NORMAL, int stackSize=1, bool detached=true); diff --git a/lib/cpp/src/server/TNonblockingServer.cpp b/lib/cpp/src/server/TNonblockingServer.cpp index df84ba52..ceba960a 100644 --- a/lib/cpp/src/server/TNonblockingServer.cpp +++ b/lib/cpp/src/server/TNonblockingServer.cpp @@ -423,7 +423,7 @@ void TConnection::setFlags(short eventFlags) { // Add the event if (event_add(&event_, 0) == -1) { - GlobalOutput("TConnection::setFlags(): coult not event_add"); + GlobalOutput("TConnection::setFlags(): could not event_add"); } }