C API Reference -- Ns_LockMutex

### Ns_LockMutex

#### Overview

Create a mutual exclusion lock

#### Syntax

        int Ns_LockMutex(
        Ns_Mutex * mutex
        );

#### Description

Acquire the mutex. If the mutex is already locked then the current thread will block until the mutex is unlocked. Note: mutexes are not recursive. If the current thread tries to lock the mutex twice in a row, it will block or get an error depending on the platform.

Top of Page
Copyright © 1998-99 America Online, Inc.