aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2016-04-06 20:34:28 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2016-04-06 20:34:28 +0900
commit5e6a433457f76da142a10b316aa74995adf8d418 (patch)
treefa766846ade1e6d8ee03bf2ffac71b67c6969073 /ChangeLog
parentfa8dd7afc88aa69af094392ad23812e983aa3d9e (diff)
New struct: chx_qh
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog21
1 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 103473c..9be094a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,26 @@
2016-04-06 Niibe Yutaka <gniibe@fsij.org>
+ * chopstx.h (struct chx_qh): New struct.
+
+ * chopstx.c (struct chx_queue): Use chx_qh.
+ (struct chx_thread): New member PARENT.
+ (ll_empty): Use chx_qh.
+ (ll_prio_push, ll_prio_enqueue): Set the member PARENT.
+ (chx_ready_pop, chx_ready_push, chx_ready_enqueue): Use the
+ member Q.
+ (chx_timer_insert): Return TP.
+ (chx_timer_dequeue, chx_timer_expired): Use the member Q.
+ (chx_init): Initialize change for Q_READY, Q_TIMER, Q_JOIN.
+ (chx_sched, preempt): Handle return value of chx_timer_insert.
+ (chx_exit, chopstx_mutex_init, chopstx_cond_init): Use the member Q.
+ (chx_mutex_unlock): Type coercion to CHX_THREAD.
+ (chopstx_create): Initialize PARENT field.
+ (chopstx_mutex_lock): Use the PARENT field.
+ (chopstx_join): Use ll_prio_enqueue, instead of ll_insert.
+ (chopstx_wakeup_usec_wait): Set REG_R0 on the stack.
+
+2016-04-06 Niibe Yutaka <gniibe@fsij.org>
+
* chopstx.c (struct chx_thread): Move tcontext field.
(chx_cpu_sched_lock, chx_cpu_sched_unlock): Use CPSID/CPSIE.
(chx_sched): Don't use SVC. Return integer value.