Skip to content

Commit 4604d13

Browse files
committed
[NATIVECPU] renamed futures to tasksinfo for consistency
1 parent e330c0d commit 4604d13

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

unified-runtime/source/adapters/native_cpu/event.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ urEnqueueTimestampRecordingExp(ur_queue_handle_t /*hQueue*/, bool /*blocking*/,
112112
ur_event_handle_t_::ur_event_handle_t_(ur_queue_handle_t queue,
113113
ur_command_t command_type)
114114
: queue(queue), context(queue->getContext()), command_type(command_type),
115-
done(false), futures(queue->getDevice()->tp) {
115+
done(false), tasksinfo(queue->getDevice()->tp) {
116116
this->queue->addEvent(this);
117117
}
118118

@@ -127,7 +127,7 @@ void ur_event_handle_t_::wait() {
127127
if (done) {
128128
return;
129129
}
130-
this->futures.wait_all();
130+
this->tasksinfo.wait_all();
131131
queue->removeEvent(this);
132132
done = true;
133133
// The callback may need to acquire the lock, so we unlock it here

unified-runtime/source/adapters/native_cpu/event.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct ur_event_handle_t_ : RefCounted {
4545

4646
void set_tasksinfo(native_cpu::tasksinfo_t &&fs) {
4747
std::lock_guard<std::mutex> lock(mutex);
48-
futures = std::move(fs);
48+
tasksinfo = std::move(fs);
4949
}
5050

5151
void tick_start();
@@ -62,7 +62,7 @@ struct ur_event_handle_t_ : RefCounted {
6262
ur_command_t command_type;
6363
bool done;
6464
std::mutex mutex;
65-
native_cpu::tasksinfo_t futures;
65+
native_cpu::tasksinfo_t tasksinfo;
6666
std::packaged_task<void()> callback;
6767
uint64_t timestamp_start = 0;
6868
uint64_t timestamp_end = 0;

0 commit comments

Comments
 (0)