summaryrefslogtreecommitdiff
path: root/tests/glibmm_mainloop
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2015-11-26 10:26:07 +0100
committerMurray Cumming <murrayc@murrayc.com>2015-11-26 10:31:39 +0100
commiteb2117327fa1a74f3f44a4acd227a2c836c48b38 (patch)
tree2ebb21636f6388ffdbde0dc11b8d8f1153a16cbc /tests/glibmm_mainloop
parent68f0cdac60e5a7c7a567301cea877e49ffd7cbd5 (diff)
downloadglibmm-eb2117327fa1a74f3f44a4acd227a2c836c48b38.tar.gz
examples/tests: Use simpler std::thread constructor.
Instead of using a lambda. As suggested by Kjell Ahlstedt: https://bugzilla.gnome.org/show_bug.cgi?id=757674#c10
Diffstat (limited to 'tests/glibmm_mainloop')
-rw-r--r--tests/glibmm_mainloop/main.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/glibmm_mainloop/main.cc b/tests/glibmm_mainloop/main.cc
index 5a437546..fab8575e 100644
--- a/tests/glibmm_mainloop/main.cc
+++ b/tests/glibmm_mainloop/main.cc
@@ -86,11 +86,8 @@ int main(int, char**)
// Create a second thread.
const std::thread::id first_thread_id = std::this_thread::get_id();
- std::thread* second_thread = new std::thread(
- [first_thread_id, first_mainloop]
- {
- thread_function(first_thread_id, first_mainloop);
- });
+ std::thread* second_thread =
+ new std::thread(&thread_function, first_thread_id, first_mainloop);
// Start the first main loop.
first_mainloop->run();