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] 

Functions [link] 

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.

error_t rwlock_destroy(struct rwlock_s *rwlock) [link] 

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 )

error_t rwlock_destroy(struct rwlock_s *rwlock) [link] 

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].

error_t rwlock_init(struct rwlock_s *rwlock) [link] 

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 )

error_t rwlock_init(struct rwlock_s *rwlock) [link] 

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].

error_t rwlock_rdlock(struct rwlock_s *rwlock) [link] 

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 )

error_t rwlock_rdlock(struct rwlock_s *rwlock) [link] 

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].

error_t rwlock_tryrdlock(struct rwlock_s *rwlock) [link] 

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 )

error_t rwlock_tryrdlock(struct rwlock_s *rwlock) [link] 

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].

error_t rwlock_trywrlock(struct rwlock_s *rwlock) [link] 

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 )

error_t rwlock_trywrlock(struct rwlock_s *rwlock) [link] 

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].

error_t rwlock_unlock(struct rwlock_s *rwlock) [link] 

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 )

error_t rwlock_unlock(struct rwlock_s *rwlock) [link] 

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].

error_t rwlock_wrlock(struct rwlock_s *rwlock) [link] 

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 )

error_t rwlock_wrlock(struct rwlock_s *rwlock) [link] 

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 )

FieldDescription
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.

Valid XHTML 1.0 StrictGenerated by diaxen on Thu Aug 4 15:44:06 2022 using MkDoc