diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-27 15:03:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-27 15:03:49 +0000 |
commit | 331b7968c8606a58e5458d98559ac6366a767dd2 (patch) | |
tree | dad89d8ac9b2ac797623e2869cf729612fa2ae3a /nuttx/sched/sem_holder.c | |
parent | 23a7ea577bec1494adf24fe09cf9835bd717da3a (diff) | |
download | px4-nuttx-331b7968c8606a58e5458d98559ac6366a767dd2.tar.gz px4-nuttx-331b7968c8606a58e5458d98559ac6366a767dd2.tar.bz2 px4-nuttx-331b7968c8606a58e5458d98559ac6366a767dd2.zip |
Updates from Uros
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3424 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sem_holder.c')
-rw-r--r-- | nuttx/sched/sem_holder.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/sched/sem_holder.c b/nuttx/sched/sem_holder.c index 28d74a868..2dfc50ee6 100644 --- a/nuttx/sched/sem_holder.c +++ b/nuttx/sched/sem_holder.c @@ -1,7 +1,7 @@ /**************************************************************************** * sched/sem_holder.c * - * Copyright (C) 2009-2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -249,11 +249,13 @@ static int sem_foreachholder(FAR sem_t *sem, holderhandler_t handler, FAR void * * Name: sem_recoverholders ****************************************************************************/ +#if CONFIG_SEM_PREALLOCHOLDERS > 0 static int sem_recoverholders(FAR struct semholder_s *pholder, FAR sem_t *sem, FAR void *arg) { sem_freeholder(sem, pholder); return 0; } +#endif /**************************************************************************** * Name: sem_boostholderprio |