diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-06-03 01:21:12 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-06-03 01:21:12 +0000 |
commit | 71342bb5e74b0c9cf55f5d581588dee0ed068e73 (patch) | |
tree | edc65f99f992d519b7c435200580a4cb9b3c7f65 /nuttx/sched/timer_create.c | |
parent | 80f36a0d652e60a1dab89ce4a14409d51961cd75 (diff) | |
download | px4-nuttx-71342bb5e74b0c9cf55f5d581588dee0ed068e73.tar.gz px4-nuttx-71342bb5e74b0c9cf55f5d581588dee0ed068e73.tar.bz2 px4-nuttx-71342bb5e74b0c9cf55f5d581588dee0ed068e73.zip |
Improved timer life control fix
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@767 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/timer_create.c')
-rw-r--r-- | nuttx/sched/timer_create.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/sched/timer_create.c b/nuttx/sched/timer_create.c index a9e19dc2a..a616e3521 100644 --- a/nuttx/sched/timer_create.c +++ b/nuttx/sched/timer_create.c @@ -41,6 +41,7 @@ #include <stdlib.h> #include <unistd.h> #include <time.h> +#include <string.h> #include <wdog.h> #include <errno.h> #include "timer_internal.h" @@ -203,6 +204,7 @@ int timer_create(clockid_t clockid, FAR struct sigevent *evp, FAR timer_t *timer /* Initialize the timer instance */ + ret->pt_crefs = 1; ret->pt_owner = getpid(); ret->pt_delay = 0; ret->pt_wdog = wdog; |