Userspace RCU Coding Style
-The coding style used for this project follows the the Linux kernel
+The coding style used for this project follows the Linux kernel
guide lines. Please refer to:
- Linux kernel Documentation/CodingStyle document for details,
* Split-counters lazily update the global counter each 1024
* addition/removal. It automatically keeps track of resize required.
* We use the bucket length as indicator for need to expand for small
- * tables and machines lacking per-cpu data suppport.
+ * tables and machines lacking per-cpu data support.
*/
#define COUNT_COMMIT_ORDER 10
#define DEFAULT_SPLIT_COUNT_MASK 0xFUL
/*
* test_urcu_gc.c
*
- * Userspace RCU library - test program (with baatch reclamation)
+ * Userspace RCU library - test program (with batch reclamation)
*
* Copyright February 2009 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
URCU_WAIT_WAITING, NULL, NULL, 0);
skip_futex_wait:
- /* Tell waker thread than we are runnning. */
+ /* Tell waker thread than we are running. */
uatomic_or(&wait->state, URCU_WAIT_RUNNING);
/*
* always performing an exclusive cacheline access, rather than doing
* non-exclusive followed by exclusive cacheline access (which would be
* required if we first read the old head value). This design decision
- * might be revisited after more throrough benchmarking on various
+ * might be revisited after more thorough benchmarking on various
* platforms.
*
* Returns 0 if the stack was empty prior to adding the node.
*
* Content written into the node before enqueue is guaranteed to be
* consistent, but no other memory ordering is ensured.
- * Mutual exlusion with cds_wfcq_splice_blocking and dequeue lock is
+ * Mutual exclusion with cds_wfcq_splice_blocking and dequeue lock is
* ensured.
* It is valid to reuse and free a dequeued node immediately.
*/
* dest_q must be already initialized.
* Content written into the node before enqueue is guaranteed to be
* consistent, but no other memory ordering is ensured.
- * Mutual exlusion with cds_wfcq_dequeue_blocking and dequeue lock is
+ * Mutual exclusion with cds_wfcq_dequeue_blocking and dequeue lock is
* ensured.
* Returns enum cds_wfcq_ret which indicates the state of the src or
* dest queue. Never returns CDS_WFCQ_RET_WOULDBLOCK.
* typedef int my_int_array_type[4];
* DEFINE_URCU_TLS(my_int_array_type, var_name);
*
- * Another exmaple:
+ * Another example:
* typedef void (*call_rcu_flavor)(struct rcu_head *, XXXX);
* DECLARE_URCU_TLS(call_rcu_flavor, p_call_rcu);
*
* Content written into the node before enqueue is guaranteed to be
* consistent, but no other memory ordering is ensured.
* It is valid to reuse and free a dequeued node immediately.
- * Mutual exlusion with cds_wfcq_dequeue_blocking and dequeue lock is
+ * Mutual exclusion with cds_wfcq_dequeue_blocking and dequeue lock is
* ensured.
*/
extern struct cds_wfcq_node *cds_wfcq_dequeue_blocking(
* dest_q must be already initialized.
* Content written into the node before enqueue is guaranteed to be
* consistent, but no other memory ordering is ensured.
- * Mutual exlusion with cds_wfcq_dequeue_blocking and dequeue lock is
+ * Mutual exclusion with cds_wfcq_dequeue_blocking and dequeue lock is
* ensured.
*
* Returns enum cds_wfcq_ret which indicates the state of the src or