[asterisk-scf-commits] asterisk-scf/integration/util-cpp.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Jan 21 16:51:43 CST 2011


branch "master" has been updated
       via  5aba658323238ead764a0e999c56aa027147d405 (commit)
      from  1b563f1e9fd043ac81420abe580454cda567c3cf (commit)

Summary of changes:
 {WorkQueue => Threading}/CMakeLists.txt            |    0
 .../AsteriskSCF/Threading/PausibleWorkQueue.h      |   44 ++++++++++++++++++++
 .../AsteriskSCF/Threading}/SimpleWorkQueue.h       |    0
 .../include/AsteriskSCF/Threading}/WorkQueue.h     |    0
 {WorkQueue => Threading}/src/SimpleWorkQueue.cpp   |    0
 5 files changed, 44 insertions(+), 0 deletions(-)
 rename {WorkQueue => Threading}/CMakeLists.txt (100%)
 create mode 100644 Threading/include/AsteriskSCF/Threading/PausibleWorkQueue.h
 rename {WorkQueue/include/AsteriskSCF/WorkQueue => Threading/include/AsteriskSCF/Threading}/SimpleWorkQueue.h (100%)
 rename {WorkQueue/include/AsteriskSCF/WorkQueue => Threading/include/AsteriskSCF/Threading}/WorkQueue.h (100%)
 rename {WorkQueue => Threading}/src/SimpleWorkQueue.cpp (100%)


- Log -----------------------------------------------------------------
commit 5aba658323238ead764a0e999c56aa027147d405
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Fri Jan 21 16:50:49 2011 -0600

    Incorporating review feedback.

diff --git a/WorkQueue/CMakeLists.txt b/Threading/CMakeLists.txt
similarity index 100%
rename from WorkQueue/CMakeLists.txt
rename to Threading/CMakeLists.txt
diff --git a/Threading/include/AsteriskSCF/Threading/PausibleWorkQueue.h b/Threading/include/AsteriskSCF/Threading/PausibleWorkQueue.h
new file mode 100644
index 0000000..36187e8
--- /dev/null
+++ b/Threading/include/AsteriskSCF/Threading/PausibleWorkQueue.h
@@ -0,0 +1,44 @@
+/*
+ * Asterisk SCF -- An open-source communications framework.
+ *
+ * Copyright (C) 2010-2011, Digium, Inc.
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk SCF project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE.txt file
+ * at the top of the source tree.
+ */
+#pragma once
+
+namespace AsteriskSCF
+{
+namespace Threading
+{
+/**
+ * This class defines a mixin interface for adding pause/resume
+ * operations to a WorkQueue. The WorkQueue interface itself
+ * is not derived, so implementations of this interface should derive from 
+ * both WorkQueue and PausibleWorkQueue. 
+ */
+class PausibleWorkQueue
+{
+public:
+    virtual bool isRunning() = 0;
+    virtual bool workPending() = 0;
+    virtual void pause() = 0;
+    virtual void resume() = 0;
+
+    virtual ~PausibleWorkQueue() {};
+
+protected:
+    PausibleWorkQueue() {};  // Hide the constructor since this is an interface.
+};
+
+
+} // end namespace Threading
+} // end namespace AsteriskSCF
diff --git a/WorkQueue/include/AsteriskSCF/WorkQueue/SimpleWorkQueue.h b/Threading/include/AsteriskSCF/Threading/SimpleWorkQueue.h
similarity index 100%
rename from WorkQueue/include/AsteriskSCF/WorkQueue/SimpleWorkQueue.h
rename to Threading/include/AsteriskSCF/Threading/SimpleWorkQueue.h
diff --git a/WorkQueue/include/AsteriskSCF/WorkQueue/WorkQueue.h b/Threading/include/AsteriskSCF/Threading/WorkQueue.h
similarity index 100%
rename from WorkQueue/include/AsteriskSCF/WorkQueue/WorkQueue.h
rename to Threading/include/AsteriskSCF/Threading/WorkQueue.h
diff --git a/WorkQueue/src/SimpleWorkQueue.cpp b/Threading/src/SimpleWorkQueue.cpp
similarity index 100%
rename from WorkQueue/src/SimpleWorkQueue.cpp
rename to Threading/src/SimpleWorkQueue.cpp

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/util-cpp.git



More information about the asterisk-scf-commits mailing list