Mercurial > hg > qm-dsp
diff thread/AsynchronousTask.h @ 489:701233f8ed41
Make include-guards consistent
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 31 May 2019 16:48:37 +0100 |
parents | 2aed32965291 |
children |
line wrap: on
line diff
--- a/thread/AsynchronousTask.h Fri May 31 16:48:29 2019 +0100 +++ b/thread/AsynchronousTask.h Fri May 31 16:48:37 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();