atomic_set
extern void atomic_set(int32* value, int32 newValue);
atomic_set(&lock->lock, 0);
atomic_set(&lock->lock, 0);
atomic_set(&thread->wait.status, 1);
atomic_set((int32*)_pointer, (int32)set);
atomic_set((int32*)&fRXRing->read_index, (int32)readIndexNew);
atomic_set((int32*)&fTXRing->write_index, (int32)writeIndexNew);
atomic_set(v, new_value);
atomic_set(&device->fTransferScheduled, 0);
atomic_set(&fTransferScheduled, 0);
atomic_set(&fTransferScheduled, 0);
atomic_set(&fTransferScheduled, 0);
atomic_set(&fTransferScheduled, 0);
atomic_set(&device->fTransferScheduled, 0);
atomic_set(&fTransferScheduled, 0);
atomic_set(&fTransferScheduled, 0);
atomic_set(&device->fTransferScheduled, 0);
atomic_set((int32 *)&sc->xl_intr_status, status);
atomic_set((int32*)&sc->sc_statack, statack);
atomic_set((int32 *)&sc->sk_intstatus, status);
atomic_set((int32*)&sc->sc_intr_status, intr_status);
atomic_set((int32*)&sc->sc_intr_status, intr_status);
atomic_set((int32*)&sc->sc_intr_status, r);
atomic_set((int32*)&sc->sc_intr_status, r);
atomic_set((int32*)&sc->sc_intr_status_1, r1);
atomic_set((int32*)&sc->sc_intr_status_2, r2);
atomic_set((int32*)&sc->sc_intr_status, intr_status);
atomic_set((int32*)&sc->sc_intr_status, r);
atomic_set(&pc->pc_intr_status, status);
atomic_set(&pc->pc_intr_tx_rings, tx_rings);
atomic_set(&(device->stop_watching), 0);
atomic_set(&(device->stop_watching), 1);
inline void SetBusy(bool busy) { atomic_set(&fBusy, busy ? 1 : 0); }
atomic_set(&fQuitThread, 1);
atomic_set(&fCurrentScreenshotIndex, 0);
atomic_set(&fCurrentScreenshotIndex, 0);
atomic_set(&fIsWatching, 0);
atomic_set(&fIsWatching, 1);
atomic_set(&fIsWatching, 0);
atomic_set(&requestStatus, kStatusReady);
atomic_set(&requestStatus, kHeadersReady);
atomic_set(&requestStatus, kBodyReady);
atomic_set(&canCancel, 1);
atomic_set(&requestStatus, kError);
#define atomic_set_32(ptr, val) (void)atomic_set((int32*)ptr, val)
#define atomic_readandclear_32(ptr) atomic_set((int32*)ptr, 0)
atomic_set(&r->r_refs, 1);
atomic_set(&fWakeupRetry, (int32)error == B_TIMED_OUT);
atomic_set(&fStopped, 1);
atomic_set(&fBusy, 1);
atomic_set(&fBusy, 0);
atomic_set((int32*)&fCursorBuffer->pos, (uint32)fMousePos.x << 16UL
atomic_set(&fAnimationActive, false);
atomic_set(&fAnimationActive, true);
atomic_set(&fAnimationActive, false);
atomic_set(&fAnimationActive, false);
atomic_set(&fPendingDPC, 0);
atomic_set(&fPendingDPC, 0);
atomic_set(&fPendingDPC, 0);
atomic_set(&fInUse, 0);
atomic_set(&fPendingDPC, 0);
atomic_set(&fSkip, 1);
atomic_set(&fSkip, 0);
atomic_set(value, newValue);
atomic_set(value, newValue);
return atomic_set((int32*)entry, newEntry);
return atomic_set((int32*)entry, newEntry);
atomic_set((int32*)&sCpuRendezvous3, 0);
atomic_set((int32*)&sCpuRendezvous3, 0);
atomic_set((int32*)&sCpuRendezvous3, 0);
atomic_set(&sEarlyBootMessageLock, 0);
atomic_set(&block->last_accessed, system_time() / 1000000L);
atomic_set(&team->debug_info.flags, flags);
atomic_set(&thread->debug_info.flags, flags);
atomic_set(&info->flags, B_TEAM_DEBUG_DEFAULT_FLAGS);
atomic_set(&team->debug_info.flags,
atomic_set(&thread->debug_info.flags, B_THREAD_DEBUG_NUB_THREAD);
atomic_set(&thread->debug_info.flags,
atomic_set(&info->flags, 0);
atomic_set(&sDefaultDebuggerPort, debuggerPort);
atomic_set(&info->flags,
atomic_set(&info->flags, 0);
atomic_set(&thread->debug_info.flags, threadFlags);
atomic_set((int32*)&fWriteHead, (fWriteHead + length) % fBufferSize);
atomic_set(&sUnusedVnodesCheckCount, 0);
atomic_set(&sUnusedVnodesCheckCount, kUnusedVnodesCheckInterval + 1);
atomic_set(&sUnusedVnodesCheckCount, 0);
atomic_set(&gCPU[thisCPU].invoke_scheduler, false);
atomic_set(&sBootCPUSpin, 1);
atomic_set(&lock->lock, 0);
atomic_set(&lock->lock, 0);
atomic_set(&msg->done, 1);
atomic_set(&sEarlyCPUCallCount, 1);
atomic_set(&cpuData.current_event_in_progress, 1);
atomic_set(&cpuData.current_event_in_progress, 0);
atomic_set(&fPendingTransfers, fTransferCount);
atomic_set(int32_t* ptr, int32_t value)
if (atomic_set((int32 *)lock, 1) != 0)
int32 count = atomic_set(&lock->lock, 0) - 1;
if (atomic_set((int32 *)lock, 0) != 1)
atomic_set((int32*)value, newValue);