summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2015-11-26 21:13:41 +0100
committerMurray Cumming <murrayc@murrayc.com>2015-11-26 21:13:41 +0100
commitdc9e30902a2f3377ef607deb92ced881c224550b (patch)
tree451ca1ae8a1f839f0d46c0acdcbfa28b71ac6599 /examples
parentdd6fd4e9030ae7e64b42d1d2b1f0b842635836ea (diff)
downloadglibmm-dc9e30902a2f3377ef607deb92ced881c224550b.tar.gz
Deprecated Glib::ThreadPool.
Because we should encourage the use of 2 different thread APIs at the same time. Maybe std::async() does what a thread pool would do? If so, we should improve the deprecation documentation.
Diffstat (limited to 'examples')
-rw-r--r--examples/thread/threadpool.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/thread/threadpool.cc b/examples/thread/threadpool.cc
index e5cd68cf..b1a382da 100644
--- a/examples/thread/threadpool.cc
+++ b/examples/thread/threadpool.cc
@@ -2,11 +2,17 @@
#include <iostream>
#include <thread>
#include <mutex>
+
+//TODO: Remove this example sometime. Glib::ThreadPool is deprecated.
+//TODO: Maybe use std::async() instead?
+#undef GLIBMM_DISABLE_DEPRECATED
+
#include <glibmm/random.h>
#include <glibmm/threadpool.h>
#include <glibmm/timer.h>
+
namespace
{