@@ -246,7 +246,7 @@ class AsyncTask : public HeapObject, public Job {
246
246
public:
247
247
// / Describes the status of the future.
248
248
// /
249
- // / Futures always being in the "Executing" state, and will always
249
+ // / Futures always begin in the "Executing" state, and will always
250
250
// / make a single state change to either Success or Error.
251
251
enum class Status : uintptr_t {
252
252
// / The future is executing or ready to execute. The storage
@@ -266,7 +266,6 @@ class AsyncTask : public HeapObject, public Job {
266
266
std::atomic<Status> status;
267
267
268
268
// / Queue containing all of the tasks that are waiting in `get()`.
269
- // / FIXME: do we also need a context pointer for each?
270
269
std::atomic<AsyncTask*> waitQueue;
271
270
272
271
// / The type of the result that will be produced by the future.
@@ -298,8 +297,6 @@ class AsyncTask : public HeapObject, public Job {
298
297
reinterpret_cast <char *>(this ) + storageOffset (resultType));
299
298
}
300
299
301
- // / Retrieve a reference to the storage of the
302
-
303
300
// / Compute the offset of the storage from the base of the future
304
301
// / fragment.
305
302
static size_t storageOffset (const Metadata *resultType) {
@@ -329,9 +326,8 @@ class AsyncTask : public HeapObject, public Job {
329
326
// /
330
327
// / \returns the status of the future. If this result is
331
328
// / \c Executing, then \c waitingTask has been added to the
332
- // / wait queue and will be scheduled when the future completes or
333
- // / is cancelled. Otherwise, the future has completed and can be
334
- // / queried.
329
+ // / wait queue and will be scheduled when the future completes. Otherwise,
330
+ // / the future has completed and can be queried.
335
331
FutureFragment::Status waitFuture (AsyncTask *waitingTask);
336
332
337
333
// / Complete this future.
0 commit comments