On 15/11/19 23:43 +, Jonathan Wakely wrote:
On 15/11/19 14:40 +, Jonathan Wakely wrote:
On 15/11/19 14:38 +, Jonathan Wakely wrote:
On 13/11/19 17:59 -0800, Thomas Rodgers wrote:
+ // TODO verify the standard requires this
+#if 0
+ // register another callback
+ bool cb3called{f
On 15/11/19 14:40 +, Jonathan Wakely wrote:
On 15/11/19 14:38 +, Jonathan Wakely wrote:
On 13/11/19 17:59 -0800, Thomas Rodgers wrote:
+ // TODO verify the standard requires this
+#if 0
+ // register another callback
+ bool cb3called{false};
+ std::stop_callback scb3{stok, [&]
+
On 15/11/19 14:38 +, Jonathan Wakely wrote:
On 13/11/19 17:59 -0800, Thomas Rodgers wrote:
+ // TODO verify the standard requires this
+#if 0
+ // register another callback
+ bool cb3called{false};
+ std::stop_callback scb3{stok, [&]
+{
+
On 13/11/19 17:59 -0800, Thomas Rodgers wrote:
+ // TODO verify the standard requires this
+#if 0
+ // register another callback
+ bool cb3called{false};
+ std::stop_callback scb3{stok, [&]
+{
+ cb3called = true;
+
Tested x86_64-pc-linux-gnu, committed to trunk.
Jonathan Wakely writes:
> On 13/11/19 17:59 -0800, Thomas Rodgers wrote:
>>+/** @file include/stop_token
>>+ * This is a Standard C++ Library header.
>>+ */
>>+
>>+#ifndef _GLIBCXX_STOP_TOKEN
>>+#define _GLIBCXX_STOP_TOKEN
>>+
>>+#if __cplusplus >=
On 13/11/19 17:59 -0800, Thomas Rodgers wrote:
+/** @file include/stop_token
+ * This is a Standard C++ Library header.
+ */
+
+#ifndef _GLIBCXX_STOP_TOKEN
+#define _GLIBCXX_STOP_TOKEN
+
+#if __cplusplus >= 201703L
This should be > not >=
OK for trunk with that change.
The attached patch should be a complete implementation of C++20
stop_token, jthread, and changes to condition_variable_any which also
addresses the comments on the previous patch.
From 2cdaa367ed919b24f3bbb84d6f7391a350dce77b Mon Sep 17 00:00:00 2001
From: Thomas Rodgers
Date: Wed, 13 Nov 2019 17
On 23/10/19 12:50 -0700, Thomas Rodgers wrote:
Thomas Rodgers writes:
Let's try this again.
That's better, thanks :-)
+ * include/Makefile.am: Add header.
+* include/Makefile.in: Regenerate.
+ * include/std/stop_token: New file.
+ * include/std/version (__cpp_lib_
Thomas Rodgers writes:
Let's try this again.From 23e1c9402cc15666d099fd61b58a0019181a9115 Mon Sep 17 00:00:00 2001
From: Thomas Rodgers
Date: Tue, 22 Oct 2019 17:53:00 -0700
Subject: [PATCH] Add support for C++2a stop_token
* include/Makefile.am: Add header.
* include/Makefi
0001-Add-support-for-C-2a-stop_token.patch
Description: le patch
10 matches
Mail list logo