Showing
1 changed file
with
1 additions
and
0 deletions
@@ -31,6 +31,7 @@ TR_queuePutFirst(TR_Queue this, void * msg) | @@ -31,6 +31,7 @@ TR_queuePutFirst(TR_Queue this, void * msg) | ||
31 | this->first = TR_new(TR_Queue); | 31 | this->first = TR_new(TR_Queue); |
32 | this->first->next = current_first; | 32 | this->first->next = current_first; |
33 | this->first->msg = msg; | 33 | this->first->msg = msg; |
34 | + this->last = this->last ? this->last : this->first; | ||
34 | this->nmsg++; | 35 | this->nmsg++; |
35 | } | 36 | } |
36 | 37 |
Please
register
or
login
to post a comment