diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-14 19:30:31 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-14 19:30:31 +0000 |
commit | e135573acc348649e767ca67a1ec189fe4e0fcda (patch) | |
tree | b34f7d2914cba8aeb9311c5bae3771af40054640 /nuttx/sched/pthread_keycreate.c | |
parent | d76fa866ad009d65396acf1aa08fcffd3b4b041e (diff) | |
download | px4-nuttx-e135573acc348649e767ca67a1ec189fe4e0fcda.tar.gz px4-nuttx-e135573acc348649e767ca67a1ec189fe4e0fcda.tar.bz2 px4-nuttx-e135573acc348649e767ca67a1ec189fe4e0fcda.zip |
Fix STM32 F2/F4 SDIO clocking; Clean-up files in sched/ directory
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4940 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/pthread_keycreate.c')
-rw-r--r-- | nuttx/sched/pthread_keycreate.c | 44 |
1 files changed, 19 insertions, 25 deletions
diff --git a/nuttx/sched/pthread_keycreate.c b/nuttx/sched/pthread_keycreate.c index 466cef84d..7579e4c11 100644 --- a/nuttx/sched/pthread_keycreate.c +++ b/nuttx/sched/pthread_keycreate.c @@ -2,7 +2,7 @@ * sched/pthread_keycreate.c * * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt <spudmonkey@racsa.co.cr> + * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -70,45 +70,39 @@ ****************************************************************************/ /**************************************************************************** - * Function: pthread_key_create + * Name: pthread_key_create * * Description: - * This function creates a thread-specific data key visible - * to all threads in the system. Although the same key value - * may be used by different threads, the values bound to - * the key by pthread_setspecific() are maintained on a - * per-thread basis and persist for the life of the calling + * This function creates a thread-specific data key visible to all threads + * in the system. Although the same key value may be used by different + * threads, the values bound to the key by pthread_setspecific() are + * maintained on a per-thread basis and persist for the life of the calling * thread. * - * Upon key creation, the value NULL will be associated with - * the new key in all active threads. Upon thread - * creation, the value NULL will be associated with all - * defined keys in the new thread. + * Upon key creation, the value NULL will be associated with the new key + * in all active threads. Upon thread creation, the value NULL will be + * associated with all defined keys in the new thread. * * Parameters: * key = A pointer to the key to create. - * destructor = An optional destructor() function that may - * be associated with each key that is invoked when a - * thread exits. However, this argument is ignored in - * the current implementation. + * destructor = An optional destructor() function that may be associated + * with each key that is invoked when a thread exits. However, this + * argument is ignored in the current implementation. * * Return Value: - * If successful, the pthread_key_create() function will - * store the newly created key value at *key and return - * zero (OK). Otherwise, an error number will be - * returned to indicate the error: + * If successful, the pthread_key_create() function will store the newly + * created key value at *key and return zero (OK). Otherwise, an error + * number will bereturned to indicate the error: * - * EAGAIN - The system lacked sufficient resources - * to create another thread-specific data key, or the - * system-imposed limit on the total number of keys - * pers process {PTHREAD_KEYS_MAX} has been exceeded + * EAGAIN - The system lacked sufficient resources to create another + * thread-specific data key, or the system-imposed limit on the total + * number of keys pers process {PTHREAD_KEYS_MAX} has been exceeded * ENONMEM - Insufficient memory exists to create the key. * * Assumptions: * * POSIX Compatibility: - * - The present implementation ignores the destructor - * argument. + * - The present implementation ignores the destructor argument. * ****************************************************************************/ |