Mercurial > hg > qm-dsp
diff thread/AsynchronousTask.h @ 505:930b5b0f707d
Merge branch 'codestyle-and-tidy'
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Wed, 05 Jun 2019 12:55:15 +0100 |
parents | 701233f8ed41 |
children |
line wrap: on
line diff
--- a/thread/AsynchronousTask.h Thu May 30 16:18:13 2019 +0100 +++ b/thread/AsynchronousTask.h Wed Jun 05 12:55:15 2019 +0100 @@ -1,5 +1,4 @@ /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ - /* QM DSP Library @@ -7,8 +6,8 @@ This file Copyright 2009 QMUL. */ -#ifndef _ASYNCHRONOUS_TASK_H_ -#define _ASYNCHRONOUS_TASK_H_ +#ifndef QM_DSP_ASYNCHRONOUS_TASK_H +#define QM_DSP_ASYNCHRONOUS_TASK_H #include "Thread.h" @@ -42,12 +41,11 @@ m_todo("AsynchronousTask: task to perform"), m_done("AsynchronousTask: task complete"), m_inTask(false), - m_finishing(false) - { + m_finishing(false) { start(); } - virtual ~AsynchronousTask() - { + + virtual ~AsynchronousTask() { m_todo.lock(); m_finishing = true; m_todo.signal();