rem: dprintf("set_alarm: thread = %p\n", thread);
add: TRACE(("set_alarm: thread = %p\n", thread));
context: set_alarm(bigtime_t time, uint32 mode){	struct thread *thread = thread_get_current_thread();	bigtime_t rv = 0;	ASSERT(B_ONE_SHOT_RELATIVE_ALARM == B_ONE_SHOT_RELATIVE_TIMER);		// just to be sure no one changes the headers some day	dprintf("set_alarm: thread = %p\n", thread);	if (thread->alarm.period)		rv = (bigtime_t)thread->alarm.entry.key - system_time();	cancel_timer(&thread->alarm);	if (time != B_INFINITE_TIMEOUT)		add_timer(&thread->alarm, &alarm_event, time, mode);	return rv;}