Browse Source

[2332] removed unused changed

JINMEI Tatuya 12 years ago
parent
commit
c0d50a2041
3 changed files with 0 additions and 100 deletions
  1. 0 1
      src/lib/util/threads/Makefile.am
  2. 0 53
      src/lib/util/threads/condvar.cc
  3. 0 46
      src/lib/util/threads/condvar.h

+ 0 - 1
src/lib/util/threads/Makefile.am

@@ -7,7 +7,6 @@ AM_CPPFLAGS += $(BOOST_INCLUDES) $(MULTITHREADING_FLAG)
 lib_LTLIBRARIES = libb10-threads.la
 libb10_threads_la_SOURCES  = lock.h lock.cc
 libb10_threads_la_SOURCES += thread.h thread.cc
-libb10_threads_la_SOURCES  += condvar.h condvar.cc
 libb10_threads_la_LIBADD = $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
 
 CLEANFILES = *.gcno *.gcda

+ 0 - 53
src/lib/util/threads/condvar.cc

@@ -1,53 +0,0 @@
-// Copyright (C) 2012  Internet Systems Consortium, Inc. ("ISC")
-//
-// Permission to use, copy, modify, and/or distribute this software for any
-// purpose with or without fee is hereby granted, provided that the above
-// copyright notice and this permission notice appear in all copies.
-//
-// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-// AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-// PERFORMANCE OF THIS SOFTWARE.
-
-#include "condvar.h"
-
-#include <exceptions/exceptions.h>
-
-#include <cassert>
-#include <pthread.h>
-
-namespace isc {
-namespace util {
-namespace thread {
-
-class CondVar::Impl {
-public:
-    Impl() {
-        const int result = pthread_cond_init(&cond, NULL);
-        if (result != 0) {
-            isc_throw(isc::Unexpected, "pthread_cond_init failed: "
-                      << std::strerror(result));
-        }
-    }
-    ~Impl() {
-        const int result = pthread_cond_destroy(&cond);
-        assert(result == 0);
-    }
-
-private:
-    pthread_cond_t cond;
-};
-
-CondVar::CondVar() : impl_(new Impl)
-{}
-
-CondVar::~CondVar() {
-    delete impl_;
-}
-
-} // namespace thread
-} // namespace util
-} // namespace isc

+ 0 - 46
src/lib/util/threads/condvar.h

@@ -1,46 +0,0 @@
-// Copyright (C) 2012  Internet Systems Consortium, Inc. ("ISC")
-//
-// Permission to use, copy, modify, and/or distribute this software for any
-// purpose with or without fee is hereby granted, provided that the above
-// copyright notice and this permission notice appear in all copies.
-//
-// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-// AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-// PERFORMANCE OF THIS SOFTWARE.
-
-#ifndef UTIL_THREADS_CONDVAR_H
-#define UTIL_THREADS_CONDVAR_H 1
-
-#include "lock.h"
-
-#include <exceptions/exceptions.h>
-
-#include <boost/noncopyable.hpp>
-
-namespace isc {
-namespace util {
-namespace thread {
-
-// This class object internally holds pthread_cond_t and pthread_mutex_t
-class CondVar : boost::noncopyable {
-public:
-    CondVar();
-    ~CondVar();
-private:
-    class Impl;
-    Impl* impl_;
-};
-
-} // namespace thread
-} // namespace util
-} // namespace isc
-
-#endif UTIL_THREADS_CONDVAR_H
-
-// Local Variables:
-// mode: c++
-// End: