class TException : public std::exception {
public:
- TException() {}
+ TException():
+ message_() {}
TException(const std::string& message) :
message_(message) {}
assert(ret == 0);
}
+#if defined(PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP) || defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
static void init_with_kind(pthread_mutex_t* mutex, int kind) {
pthread_mutexattr_t mutexattr;
int ret = pthread_mutexattr_init(&mutexattr);
ret = pthread_mutexattr_destroy(&mutexattr);
assert(ret == 0);
}
+#endif
#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
void Mutex::ADAPTIVE_INITIALIZER(void* arg) {
* to, or finished receiving the data that it needed to.
*/
void TConnection::transition() {
-
- int sz = 0;
-
// Switch upon the state that we are currently in and move to a new state
switch (appState_) {