Lines Matching refs:entry

181 	// queue the entry
189 // remove the entry
355 WaitForChildDone(const job_control_entry& entry)
357 fState(entry.state),
358 fTeam(entry.thread),
359 fStatus(entry.status),
360 fReason(entry.reason),
361 fSignal(entry.signal)
538 while (::job_control_entry* entry = dead_children.entries.RemoveHead())
539 delete entry;
541 while (free_user_thread* entry = free_user_threads) {
542 free_user_threads = entry->next;
543 free(entry);
1457 while (free_user_thread* entry = team->free_user_threads) {
1458 team->free_user_threads = entry->next;
1459 free(entry);
1582 addr_t entry;
1592 TRACE(("team_create_thread_start: entry thread %" B_PRId32 "\n",
1698 &entry);
1710 TRACE(("team_create_thread_start: loaded elf. entry = %#lx\n", entry));
1713 return thread_enter_userspace_new_team(thread, (addr_t)entry,
2340 /*! Returns the first job control entry from \a children, which matches \a id.
2342 - \code > 0 \endcode: Matching an entry with that team ID.
2343 - \code == -1 \endcode: Matching any entry.
2344 - \code < -1 \endcode: Matching any entry with a process group ID of \c -id.
2349 \param children The job control entry list to check.
2351 \return The first matching entry or \c NULL, if none matches.
2357 job_control_entry* entry = it.Next();) {
2360 if (entry->thread == id)
2361 return entry;
2363 return entry;
2366 = (entry->team ? entry->team->group_id : entry->group_id);
2368 return entry;
2376 /*! Returns the first job control entry from one of team's dead, continued, or
2379 - \code > 0 \endcode: Matching an entry with that team ID.
2380 - \code == -1 \endcode: Matching any entry.
2381 - \code < -1 \endcode: Matching any entry with a process group ID of \c -id.
2394 \return The first matching entry or \c NULL, if none matches.
2399 job_control_entry* entry = NULL;
2402 entry = get_job_control_entry(team->dead_children, id);
2404 if (entry == NULL && (flags & WCONTINUED) != 0)
2405 entry = get_job_control_entry(team->continued_children, id);
2407 if (entry == NULL && (flags & (WUNTRACED | WSTOPPED)) != 0)
2408 entry = get_job_control_entry(team->stopped_children, id);
2410 return entry;
2440 /*! Invoked when the owning team is dying, initializing the entry according to
2525 job_control_entry* entry = get_job_control_entry(team, child, flags);
2527 // If we don't have an entry yet, check whether there are any children
2529 if (entry == NULL) {
2554 foundEntry = *entry;
2558 if (entry->state == JOB_CONTROL_STATE_DEAD) {
2559 // The child is dead. Reap its death entry.
2560 freeDeathEntry = entry;
2561 team->dead_children.entries.Remove(entry);
2565 team_set_job_control_state(entry->team,
2580 // we got our entry and can return to our caller
2623 // When we got here, we have a valid death entry, and already got
2736 // the parent team's lock guards the job control entry -- acquire it
2959 /*! Returns a death entry of a child team specified by ID (if any).
2963 \param child The ID of the child for whose death entry to lock. Must be > 0.
2965 delete the returned entry.
2966 \return The death entry of the matching team, or \c NULL, if no death entry
2975 job_control_entry* entry = get_job_control_entry(team->dead_children,
2977 if (entry) {
2978 // remove the entry only, if the caller is the parent of the found team
2979 if (team_get_current_team_id() == entry->thread) {
2980 team->dead_children.entries.Remove(entry);
2988 return entry;
3284 ConditionVariableEntry entry;
3285 deathEntry.condition.Add(&entry);
3289 entry.Wait();
3416 entry before releasing the parent team's lock, unless the new state is
3430 job_control_entry* entry = team->job_control_entry;
3431 if (entry->state == newState || entry->state == JOB_CONTROL_STATE_DEAD)
3437 switch (entry->state) {
3439 // entry is in no list ATM
3445 team->parent->stopped_children.entries.Remove(entry);
3448 team->parent->continued_children.entries.Remove(entry);
3452 entry->state = newState;
3455 entry->signal = signal->Number();
3456 entry->signaling_user = signal->SendingUser();
3461 switch (entry->state) {
3463 // entry doesn't get into any list
3478 childList->entries.Add(entry);
3580 // take an entry from the free list, if any
3581 if (struct free_user_thread* entry = team->free_user_threads) {
3582 user_thread* thread = entry->thread;
3583 team->free_user_threads = entry->next;
3584 free(entry);
3625 // create a free list entry
3626 free_user_thread* entry
3628 if (entry == NULL) {
3636 entry->thread = userThread;
3637 entry->next = team->free_user_threads;
3638 team->free_user_threads = entry;