mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Peserved job queue current index after pushing a job.
This commit is contained in:
parent
cca503a6ec
commit
52ddb43318
@ -91,6 +91,11 @@ int Trick::ScheduledJobQueue::push( JobData * new_job ) {
|
||||
|
||||
/* Increment the size of the queue */
|
||||
list_size++ ;
|
||||
|
||||
int new_job_index = (insert_pt - list) / sizeof(JobData**);
|
||||
if(new_job_index < curr_index) {
|
||||
curr_index++;
|
||||
}
|
||||
|
||||
return(0) ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user