flush_delayed_work_sync(9)

flush_delayed_work_sync9

Wait for a dwork to finish

Usage

bool flush_delayed_work_sync(struct delayed_work * dwork);

Arguments

dwork

the delayed work to flush

Overview

Delayed timer is cancelled and the pending work is queued for execution immediately. Other than timer handling, its behavior is identical to flush_work_sync.

Returns

true if flush_work_sync waited for the work to finish execution, false if it was already idle.

From linux-manual-3.2 3.2.78-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.