[gstreamermm] Task: Use anonymous namespace around internal structure definition.
- From: José Alburquerque <jaalburqu src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gstreamermm] Task: Use anonymous namespace around internal structure definition.
- Date: Thu, 6 Aug 2009 21:07:25 +0000 (UTC)
commit fc670341aa7cb6e0511de05b43096361250053b3
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Thu Aug 6 17:07:09 2009 -0400
Task: Use anonymous namespace around internal structure definition.
* gstreamer/src/task.ccg: Surround internal structure definition used
only in the implementation of set_thread_slots() in an anonymous
namespace.
* gstreamer/src/task.hg: Doc typos.
ChangeLog | 9 +++++++++
gstreamer/src/task.ccg | 5 +++++
gstreamer/src/task.hg | 7 ++++---
3 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7fd7138..88758ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-08-06 José Alburquerque <jaalburqu svn gnome org>
+
+ Task: Use anonymous namespace around internal structure definition.
+
+ * gstreamer/src/task.ccg: Surround internal structure definition used
+ only in the implementation of set_thread_slots() in an anonymous
+ namespace.
+ * gstreamer/src/task.hg: Doc typos.
+
2009-08-05 José Alburquerque <jaalburqu svn gnome org>
Task: Docs typo.
diff --git a/gstreamer/src/task.ccg b/gstreamer/src/task.ccg
index 8c56baa..1d5dbc1 100644
--- a/gstreamer/src/task.ccg
+++ b/gstreamer/src/task.ccg
@@ -21,6 +21,9 @@
#include <gstreamermm/taskpool.h>
_PINCLUDE(gstreamermm/private/object_p.h)
+namespace
+{
+
// Used in set_thread_slots() method to set the slots.
struct TaskThreadCallbacks
{
@@ -29,6 +32,8 @@ struct TaskThreadCallbacks
Gst::Task::SlotLeave* slot_leave;
};
+} // Anonymous namespace
+
static void Task_Task_gstreamermm_callback(void* data)
{
Gst::Task::SlotTask* the_slot = static_cast<Gst::Task::SlotTask*>(data);
diff --git a/gstreamer/src/task.hg b/gstreamer/src/task.hg
index f04eb93..f9a72af 100644
--- a/gstreamer/src/task.hg
+++ b/gstreamer/src/task.hg
@@ -109,11 +109,12 @@ public:
/** Set slots which will be executed when a new thread is needed, the thread
* function is entered and left and when the thread is joined.
*
- * By default a thread for task will be created from a default thread pool.
+ * By default a thread for the task will be created from a default thread
+ * pool.
*
- * Objects can use custom Glib::Thread or can perform additional
+ * Objects can use custom Glib::Threads or can perform additional
* configuration of the threads (such as changing the thread priority) by
- * installing slot.
+ * installing slots.
*
* MT safe.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]