Skip to content

Commit 465653a

Browse files
committed
1 parent 84806bb commit 465653a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

include/exec/__detail/intrusive_heap.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace exec {
5454
# endif
5555
#endif
5656

57-
template <auto Key, auto Prev, auto Left, auto Right>
57+
template <class Node, class KeyT, auto Key, auto Prev, auto Left, auto Right>
5858
class intrusive_heap;
5959

6060
template <
@@ -64,7 +64,7 @@ namespace exec {
6464
Node* Node::*Prev,
6565
Node* Node::*Left,
6666
Node* Node::*Right>
67-
class intrusive_heap<Key, Prev, Left, Right> {
67+
class intrusive_heap<Node, KeyT, Key, Prev, Left, Right> {
6868
public:
6969
void insert(Node* node) noexcept {
7070
node->*Prev = nullptr;

include/exec/timed_thread_scheduler.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,13 @@ namespace exec {
206206
}
207207

208208
stdexec::__intrusive_mpsc_queue<&command_type::next_> command_queue_;
209-
intrusive_heap<&task_type::when_, &task_type::prev_, &task_type::left_, &task_type::right_>
209+
intrusive_heap<
210+
task_type,
211+
_time_thrd_sched::when_type<time_point>,
212+
&task_type::when_,
213+
&task_type::prev_,
214+
&task_type::left_,
215+
&task_type::right_>
210216
heap_;
211217
std::atomic<std::ptrdiff_t> n_submissions_in_flight_{0};
212218
std::mutex ready_mutex_;

0 commit comments

Comments
 (0)