mutek/rwlock.h header reference
[Kernel services module]
The source code of this header can be browsed online.
Description [link]
The rwlock functions are empty and always succeed when the scheduler is disabled in the configuration.
Members [link]
Type [link]
- struct rwlock_s
Functions [link]
- error_t rwlock_destroy(struct rwlock_s *rwlock)
- error_t rwlock_destroy(struct rwlock_s *rwlock)
- error_t rwlock_init(struct rwlock_s *rwlock)
- error_t rwlock_init(struct rwlock_s *rwlock)
- error_t rwlock_rdlock(struct rwlock_s *rwlock)
- error_t rwlock_rdlock(struct rwlock_s *rwlock)
- error_t rwlock_tryrdlock(struct rwlock_s *rwlock)
- error_t rwlock_tryrdlock(struct rwlock_s *rwlock)
- error_t rwlock_trywrlock(struct rwlock_s *rwlock)
- error_t rwlock_trywrlock(struct rwlock_s *rwlock)
- error_t rwlock_unlock(struct rwlock_s *rwlock)
- error_t rwlock_unlock(struct rwlock_s *rwlock)
- error_t rwlock_wrlock(struct rwlock_s *rwlock)
- error_t rwlock_wrlock(struct rwlock_s *rwlock)
Macros [link]
Members detail [link]
#define RWLOCK_INITIALIZER [link]
This macro is declared in mutek/rwlock.h source file, line 55.
normal rwlock object static initializer
Alternate declarations with same identifier: [1], [2].
Preprocessor condition: defined( CONFIG_MUTEK_CONTEXT_SCHED )
#define RWLOCK_INITIALIZER [link]
This macro is declared in mutek/rwlock.h source file, line 63.
Documentation from alternate declaration:
normal rwlock object static initializer
Alternate declarations with same identifier: [1], [2].
Preprocessor condition: not defined( CONFIG_MUTEK_CONTEXT_SCHED )
#define RW_LOCK_H_ [link]
This macro is declared in mutek/rwlock.h source file, line 23.
This function is declared in mutek/rwlock.h source file, line 70.
Documentation from alternate declaration:
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
Preprocessor condition: not defined( CONFIG_MUTEK_CONTEXT_SCHED )
This function is declared in mutek/rwlock.h source file, line 106.
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
This function is declared in mutek/rwlock.h source file, line 75.
Documentation from alternate declaration:
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
Preprocessor condition: not defined( CONFIG_MUTEK_CONTEXT_SCHED )
This function is declared in mutek/rwlock.h source file, line 109.
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
This function is declared in mutek/rwlock.h source file, line 80.
Documentation from alternate declaration:
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
Preprocessor condition: not defined( CONFIG_MUTEK_CONTEXT_SCHED )
This function is declared in mutek/rwlock.h source file, line 112.
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
This function is declared in mutek/rwlock.h source file, line 89.
Documentation from alternate declaration:
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
Preprocessor condition: not defined( CONFIG_MUTEK_CONTEXT_SCHED )
This function is declared in mutek/rwlock.h source file, line 118.
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
This function is declared in mutek/rwlock.h source file, line 94.
Documentation from alternate declaration:
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
Preprocessor condition: not defined( CONFIG_MUTEK_CONTEXT_SCHED )
This function is declared in mutek/rwlock.h source file, line 121.
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
This function is declared in mutek/rwlock.h source file, line 99.
Documentation from alternate declaration:
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
Preprocessor condition: not defined( CONFIG_MUTEK_CONTEXT_SCHED )
This function is declared in mutek/rwlock.h source file, line 124.
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
This function is declared in mutek/rwlock.h source file, line 84.
Documentation from alternate declaration:
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
Preprocessor condition: not defined( CONFIG_MUTEK_CONTEXT_SCHED )
This function is declared in mutek/rwlock.h source file, line 115.
This is available when CONFIG_MUTEK_RWLOCK is defined.
Alternate declarations with same identifier: [1], [2].
struct rwlock_s [link]
This struct is declared in pthread.h source file, line 505.
This struct is for internal use only.
Preprocessor condition: defined( CONFIG_PTHREAD )
Field | Description |
---|---|
int_fast8_t count; | lock counter: count < 0 is write locked, count > 0 is read locked. |
sched_queue_root_t wait_rd; | blocked threads waiting for read |
sched_queue_root_t wait_wr; | blocked threads waiting for write |
See also pthread_rwlock_t.