Typo and comment fix
authorMark Slee <mcslee@apache.org>
Thu, 2 Aug 2007 06:37:40 +0000 (06:37 +0000)
committerMark Slee <mcslee@apache.org>
Thu, 2 Aug 2007 06:37:40 +0000 (06:37 +0000)
Reviewed By: marc

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665189 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/concurrency/PosixThreadFactory.h
lib/cpp/src/server/TNonblockingServer.cpp

index 9a9e2af..0f12fc9 100644 (file)
@@ -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);
index df84ba5..ceba960 100644 (file)
@@ -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");
   }
 }