thr
thr_t thr;
drec.thr = thr_self();
if (ldrec->thr == drec.thr)
thrd_detach(thrd_t thr)
_DIAGASSERT(thr != NULL);
if (pthread_detach(thr) == 0)
thrd_create(thrd_t *thr, thrd_start_t func, void *arg)
_DIAGASSERT(thr != NULL);
switch(pthread_create(thr, NULL, __thrd_create_tramp, cookie)) {
struct thread *thr;
thr = create_thread(thrname, NULL, (void (*)(void *))f, arg, NULL, 0);
if (!thr)
if (thr && joinable)
thr->flags |= THREAD_MUSTJOIN;
*tptr = thr;
pthread_t thr;
pthread_create(&thr, NULL, thread, NULL);
com_port->thr = c;
struct thread *thr = PCPU_GET(fpcurthread);
if (thr != NULL) {
mtx_lock_spin(&thr->td_md.md_highfp_mtx);
save_high_fp(&thr->td_pcb->pcb_high_fp);
thr->td_pcb->pcb_fpcpu = NULL;
mtx_unlock_spin(&thr->td_md.md_highfp_mtx);
com_port->thr = c;
com_port->thr = c;
int thr = fdc->sc_cfg & CFG_THRHLD_MASK;
if (thr < 15) {
thr++;
fdc->sc_cfg |= (thr & CFG_THRHLD_MASK);
printf("fdc: %d -> threshold\n", thr);
int thr = fdc->sc_cfg & CFG_THRHLD_MASK;
if (thr > 0) {
thr--;
fdc->sc_cfg |= (thr & CFG_THRHLD_MASK);
printf("fdc: %d -> threshold\n", thr);
int thr = fdc->sc_cfg & CFG_THRHLD_MASK;
if (thr < 15) {
thr++;
fdc->sc_cfg |= (thr & CFG_THRHLD_MASK);
thr);
int thr = fdc->sc_cfg & CFG_THRHLD_MASK;
if (thr > 0) {
thr--;
fdc->sc_cfg |= (thr & CFG_THRHLD_MASK);
thr);
int thr = fdc->sc_cfg & CFG_THRHLD_MASK;
if (thr < 15) {
thr++;
fdc->sc_cfg |= (thr & CFG_THRHLD_MASK);
thr);
int thr = fdc->sc_cfg & CFG_THRHLD_MASK;
if (thr > 0) {
thr--;
fdc->sc_cfg |= (thr & CFG_THRHLD_MASK);
thr);
int32_t thr;
thr = (rf->rf_nrssi[1] - rf->rf_nrssi[0]) * 32;
thr += 20 * (rf->rf_nrssi[0] + 1);
thr /= 40;
thr = rf->rf_nrssi[1] - 5;
if (thr < 0)
thr = 0;
else if (thr > 0x3e)
thr = 0x3e;
PHY_WRITE(mac, BWI_PHYR_NRSSI_THR_11B, (((uint16_t)thr) << 8) | 0x1c);
uint16_t thr;
thr = __SHIFTIN((uint32_t)thr1, NRSSI_THR1_MASK) |
PHY_FILT_SETBITS(mac, BWI_PHYR_NRSSI_THR_11G, 0xf000, thr);
pthread_t thr[100];
pthread_create(&thr[i], NULL, read_happy, NULL);
pthread_t thr;
ATF_REQUIRE(pthread_create(&thr, NULL, runner, &i) == 0);
ATF_REQUIRE(pthread_kill(thr, SIGINT) == 0);
ATF_REQUIRE(pthread_join(thr, NULL) == 0);
pthread_t thr;
assert(pthread_create(&thr, NULL, thrfunc, NULL) == 0);
assert(pthread_join(thr, &threval) == 0);
pthread_t thr, self = pthread_self();
PTHREAD_REQUIRE(pthread_create(&thr, &attr, threadfunc, NULL));
PTHREAD_REQUIRE(pthread_join(thr, NULL));
ATF_REQUIRE_EQ(pthread_getname_np(thr, retname, sizeof(retname)), ESRCH);