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 9a9e2af..0f12fc9 100644
--- a/lib/cpp/src/concurrency/PosixThreadFactory.h
+++ b/lib/cpp/src/concurrency/PosixThreadFactory.h
@@ -63,12 +63,7 @@
* 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 df84ba5..ceba960 100644
--- a/lib/cpp/src/server/TNonblockingServer.cpp
+++ b/lib/cpp/src/server/TNonblockingServer.cpp
@@ -423,7 +423,7 @@
// Add the event
if (event_add(&event_, 0) == -1) {
- GlobalOutput("TConnection::setFlags(): coult not event_add");
+ GlobalOutput("TConnection::setFlags(): could not event_add");
}
}