diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-06-01 17:46:26 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-06-01 17:46:26 +0000 |
commit | 60baf60892705bec8c3180025cd797c5d64a1e1e (patch) | |
tree | 26e2646c057a968cf9b83f137d533badf5eb219a /nuttx/sched/timer_internal.h | |
parent | e6e16479eb1559c46d23c0187f0c33735935185a (diff) | |
download | px4-nuttx-60baf60892705bec8c3180025cd797c5d64a1e1e.tar.gz px4-nuttx-60baf60892705bec8c3180025cd797c5d64a1e1e.tar.bz2 px4-nuttx-60baf60892705bec8c3180025cd797c5d64a1e1e.zip |
Fix problem when timer deleted by timer handler
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@762 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/timer_internal.h')
-rw-r--r-- | nuttx/sched/timer_internal.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/nuttx/sched/timer_internal.h b/nuttx/sched/timer_internal.h index 604adbc8e..e4403499c 100644 --- a/nuttx/sched/timer_internal.h +++ b/nuttx/sched/timer_internal.h @@ -1,7 +1,7 @@ /******************************************************************************** * timer_internal.h * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -49,7 +49,12 @@ * Definitions ********************************************************************************/ -#define PT_FLAGS_PREALLOCATED 0x01 +#define PT_FLAGS_PREALLOCATED 0x01 /* Timer comes from a pool of preallocated timers */ +#define PT_FLAGS_BUSY 0x02 /* Timer cannot be deleted now */ +#define PT_FLAGS_DELETED 0x04 /* Busy timer marked for deletion */ + +#define PT_FLAGS_STATIC PT_FLAGS_PREALLOCATED +#define PT_FLAGS_DYNAMIC (~PT_FLAGS_STATIC) /******************************************************************************** * Public Types |