Lines Matching defs:NULL

126 		Thread* thread = NULL)
134 if (thread != NULL)
171 hash_next(NULL),
172 team_next(NULL),
176 previous_cpu(NULL),
180 user_signal_context(NULL),
186 user_thread(NULL),
189 team(NULL),
190 select_infos(NULL),
201 post_interrupt_callback(NULL),
202 post_interrupt_data(NULL)
217 if (name != NULL)
273 Thread* thread = new Thread(name, -1, NULL);
274 if (thread == NULL)
293 if (thread != NULL)
305 if (thread == NULL)
306 return NULL;
323 return NULL;
338 return sThreadHash.Lookup(id) != NULL;
401 return sThreadHash.Lookup(id) != NULL;
412 user_signal_context = NULL;
509 if (thread != NULL)
523 this->entry = NULL;
526 this->args1 = NULL;
527 this->args2 = NULL;
528 this->stack_address = NULL;
531 this->pthread = NULL;
539 this->forkArgs = NULL;
556 if (userAttributes == NULL || !IS_USER_ADDRESS(userAttributes)
568 if (entry == NULL || !IS_USER_ADDRESS(entry)
569 || (stack_address != NULL && !IS_USER_ADDRESS(stack_address))
570 || (name != NULL && (!IS_USER_ADDRESS(name)
575 name = name != NULL ? nameBuffer : "user thread";
580 thread = NULL;
584 kernelEntry = NULL;
585 kernelArgument = NULL;
586 forkArgs = NULL;
621 Thread *temp, *last = NULL;
623 for (temp = team->thread_list; temp != NULL; temp = temp->team_next) {
625 if (last == NULL)
669 if (args->forkArgs == NULL) {
703 entryArgs.kernelFunction = NULL;
704 entryArgs.argument = NULL;
709 entryArgs.pthread = NULL;
710 entryArgs.forkArgs = NULL;
732 if (args->kernelFunction != NULL)
804 if (stackBase != NULL) {
896 if (team == NULL)
903 if (thread != NULL) {
1005 if (thread->user_thread == NULL) {
1007 if (thread->user_thread == NULL)
1014 if (currentThread != NULL && currentThread->team == team) {
1049 thread->user_thread = NULL;
1054 if (userThread != NULL)
1233 if (target == NULL)
1258 if (data == NULL)
1265 data = NULL;
1307 if (buffer != NULL && bufferSize != 0 && thread->msg.buffer != NULL) {
1415 = _remainingTime != NULL && (flags & B_RELATIVE_TIMEOUT) != 0
1421 NULL);
1428 if (status == B_INTERRUPTED && _remainingTime != NULL) {
1471 id = strtoul(argv[1], NULL, 0);
1499 prio = strtoul(argv[1], NULL, 0);
1506 id = strtoul(argv[2], NULL, 0);
1540 id = strtoul(argv[1], NULL, 0);
1574 id = strtoul(argv[1], NULL, 0);
1612 id = strtoul(argv[1], NULL, 0);
1641 if (thread != NULL) {
1764 struct thread_death_entry *death = NULL;
1848 &thread->exit.waiters, death)) != NULL) {
1888 ulong arg = strtoul(name, NULL, 0);
1920 const char *callSymbol = NULL;
1937 sem = strtoul(argv[1], NULL, 0);
1953 team = strtoul(argv[1], NULL, 0);
1982 sigprocmask(SIG_SETMASK, &thread->old_sig_block_mask, NULL);
2017 thread->user_thread = NULL;
2030 if (team->address_space != NULL && thread->user_stack_area >= 0) {
2035 struct job_control_entry *death = NULL;
2036 struct thread_death_entry* threadDeathEntry = NULL;
2093 user_timer_stop_cpu_timers(thread, NULL);
2111 if (team->death_entry != NULL) {
2121 team_set_job_control_state(team, JOB_CONTROL_STATE_DEAD, NULL);
2123 team->job_control_entry = NULL;
2125 if (death != NULL) {
2135 death = NULL;
2183 if (threadDeathEntry != NULL
2231 thread->select_infos = NULL;
2242 while (info != NULL) {
2263 receive_data_etc(&sender, NULL, 0, B_RELATIVE_TIMEOUT);
2282 thread_death_entry* entry = NULL;
2284 &thread->exit.waiters, entry)) != NULL) {
2417 thread->user_thread = NULL;
2446 } while (sThreadHash.Lookup(id, false) != NULL);
2469 if (thread == NULL)
2518 if (thread != NULL) {
2539 if (freeDeath != NULL) {
2545 thread_death_entry* threadDeathEntry = NULL;
2547 &team->dead_threads, threadDeathEntry)) != NULL) {
2556 if (threadDeathEntry == NULL)
2584 if (thread != NULL) {
2597 if (status == B_OK && _returnCode != NULL)
2609 if (thread == NULL)
2635 if (thread == NULL)
2642 while (*infoLocation != NULL && *infoLocation != info)
2688 if (thread == NULL)
2724 sThreadCache = create_object_cache("threads", sizeof(Thread), 64, NULL,
2725 NULL, NULL);
2727 if (sThreadCache == NULL)
2745 if (thread == NULL || thread->Init(true) != B_OK) {
2781 B_DISPLAY_PRIORITY, NULL);
3015 if (thread == NULL)
3020 if (thread->user_thread == NULL)
3075 if (thread == NULL)
3163 if (thread == NULL)
3190 if (info == NULL || size != sizeof(thread_info) || id < B_OK)
3195 if (thread == NULL)
3213 if (info == NULL || size != sizeof(thread_info) || teamID < 0)
3220 if (team == NULL)
3225 Thread* thread = NULL;
3235 for (Thread* next = team->thread_list; next != NULL;
3244 if (thread == NULL)
3262 if (name == NULL)
3287 if (name == NULL)
3292 if (thread == NULL)
3326 if (thread == NULL)
3350 return common_snooze_etc(timeout, timebase, flags, NULL);
3467 if (cancelFunction == NULL || !IS_USER_ADDRESS(cancelFunction))
3472 if (thread == NULL)
3487 return send_signal_to_thread_locked(thread, SIGNAL_CANCEL_THREAD, NULL, 0);
3511 || userName == NULL
3604 userRemainingTime != NULL ? &remainingTime : NULL);
3609 if (userRemainingTime != NULL
3686 if (userName == NULL)
3687 return find_thread(NULL);
3703 if (userReturnCode != NULL && !IS_USER_ADDRESS(userReturnCode))
3708 if (status == B_OK && userReturnCode != NULL
3723 if (userReturnCode != NULL && !IS_USER_ADDRESS(userReturnCode))
3730 if (status == B_OK && userReturnCode != NULL
3750 if (buffer != NULL && !IS_USER_ADDRESS(buffer))
3765 if ((!IS_USER_ADDRESS(_userSender) && _userSender != NULL)
3766 || (!IS_USER_ADDRESS(buffer) && buffer != NULL)) {
3773 if (_userSender != NULL)
3805 thread_prepare_to_block(thread, flags, THREAD_BLOCK_TYPE_USER, NULL);
3856 if (userThreads == NULL || !IS_USER_ADDRESS(userThreads))
3883 if (urlp == NULL)
3908 if (userResourceLimit == NULL)