Lines Matching defs:team

24 #include <team.h>
35 // A userland team can register as system profiler, providing an area as buffer
36 // for events. Those events are team, thread, and image changes (added/removed),
57 SystemProfiler(team_id team,
85 bool _TeamAdded(Team* team);
86 bool _TeamRemoved(Team* team);
87 bool _TeamExec(Team* team);
250 SystemProfiler::SystemProfiler(team_id team, const area_info& userAreaInfo,
253 fTeam(team),
460 while (Team* team = iterator.Next()) {
463 bool added = _TeamAdded(team);
466 team->ReleaseReference();
619 Team* team = (Team*)event->GetPointer("teamStruct", NULL);
620 if (team == NULL)
626 _TeamAdded(team);
630 if (team->id == fTeam) {
631 // The profiling team is gone -- uninstall the profiler!
643 // When we're still doing the initial team list scan, we are
647 || team->serial_number <= fLastTeamAddedSerialNumber) {
648 _TeamRemoved(team);
654 _TeamExec(team);
868 SystemProfiler::_TeamAdded(Team* team)
870 TeamLocker teamLocker(team);
872 size_t nameLen = strlen(team->Name());
873 size_t argsLen = strlen(team->Args());
877 // During the initial scan check whether the team is already gone again.
878 // Later this cannot happen, since the team creator notifies us before
879 // actually starting the team.
880 if (!fTeamNotificationsEnabled && team->state >= TEAM_STATE_DEATH)
883 if (team->serial_number > fLastTeamAddedSerialNumber)
884 fLastTeamAddedSerialNumber = team->serial_number;
893 event->team = team->id;
894 strcpy(event->name, team->Name());
896 strcpy(event->name + nameLen + 1, team->Args());
905 SystemProfiler::_TeamRemoved(Team* team)
908 // had already been removed from the global team list when we did the
912 TeamLocker teamLocker(team);
921 event->team = team->id;
930 SystemProfiler::_TeamExec(Team* team)
932 TeamLocker teamLocker(team);
934 size_t argsLen = strlen(team->Args());
944 event->team = team->id;
945 strlcpy(event->thread_name, team->main_thread->name,
947 strcpy(event->args, team->Args());
961 // During the initial scan check whether the team is already gone again.
962 // Later this cannot happen, since the team creator notifies us before
976 event->team = thread->team->id;
1004 event->team = thread->team->id;
1024 event->team = image->team;
1044 event->team = image->team;
1112 event->team = owner->team;
1560 team_id team = thread_get_current_thread()->team->id;
1567 if (areaInfo.team != team)
1588 SystemProfiler* profiler = new(std::nothrow) SystemProfiler(team, areaInfo,
1620 team_id team = thread_get_current_thread()->team->id;
1623 if (sProfiler == NULL || sProfiler->TeamID() != team)
1647 team_id team = thread_get_current_thread()->team->id;
1650 if (sProfiler == NULL || sProfiler->TeamID() != team)