diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-09-29 17:19:16 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-09-29 17:19:16 +0000 |
commit | 11290355c9454c575d56c7928a725fd95e88d6f8 (patch) | |
tree | 1cd5ff063250cff764a59189f1e1956c40925a35 /c/src/libchip/shmdr/getlq.c | |
parent | new programs added (diff) | |
download | rtems-11290355c9454c575d56c7928a725fd95e88d6f8.tar.bz2 |
all targets compile .. tony's patches in place
Diffstat (limited to '')
-rw-r--r-- | c/src/libchip/shmdr/getlq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/c/src/libchip/shmdr/getlq.c b/c/src/libchip/shmdr/getlq.c index 180c33ef00..ebc5bed8b6 100644 --- a/c/src/libchip/shmdr/getlq.c +++ b/c/src/libchip/shmdr/getlq.c @@ -33,6 +33,7 @@ Shm_Envelope_control *Shm_Locked_queue_Get( tmp_ecb = NULL; Shm_Lock( lq_cb ); + tmpfront = Shm_Convert(lq_cb->front); if ( tmpfront != Shm_Locked_queue_End_of_list ) { tmp_ecb = &Shm_Envelopes[ tmpfront ]; @@ -41,6 +42,7 @@ Shm_Envelope_control *Shm_Locked_queue_Get( lq_cb->rear = Shm_Locked_queue_End_of_list; tmp_ecb->next = Shm_Locked_queue_Not_on_list; } + Shm_Unlock( lq_cb ); return( tmp_ecb ); } |