[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1


_clear_lock Subroutine

Purpose

Stores a value in a single word variable atomically.

Library

Standard C library (libc.a)

Syntax

#include <sys/atomic_op.h>


void _clear_lock ( word_addr, value)
atomic_p word_addr;
int value

Parameters


word_addr Specifies the address of the single word variable.
value Specifies the value to store in the single word variable.

Description

The _clear_lock subroutine performs an atomic (uninterruptible) sequence of operations.

This subroutine has no return values.

Note: The word variable must be aligned on a full word boundary.

Related Information

The _check_lock (_check_lock Subroutine) subroutine, _safe_fetch subroutine.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]