NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release

Detailed Description

Functions

void NvOsMutexDestroy (NvOsMutexHandle mutex)
 This function destroys a mutex. More...
 
void NvOsMutexLock (NvOsMutexHandle mutex)
 This function locks a mutex. More...
 
void NvOsMutexUnlock (NvOsMutexHandle mutex)
 This function unlocks a mutex. More...
 

Function Documentation

◆ NvOsMutexDestroy()

void NvOsMutexDestroy ( NvOsMutexHandle  mutex)

This function destroys a mutex.

Parameters
[in]mutexMutex handle to be destroyed
Returns
N/A
Precondition
Mutex mutex was successfully created with NvOsMutexCreate().


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Thread-safe: Yes
    • Re-entrant: No
    • Async/Sync: Sync
  • Required privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: No
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvOsMutexLock()

void NvOsMutexLock ( NvOsMutexHandle  mutex)

This function locks a mutex.

  • If mutex handle is locked already
    • then, the calling thread is blocked until mutex handle is unlocked
  • Otherwise, mutex handle is locked, and this function return
Parameters
[in]mutexMutex handle to be locked
Returns
N/A
Precondition
Note
  • Allowed context for the API call
    • This function's safety follow pthread_mutex_lock() in QNX libc.
  • Is thread safe: Yes
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes

◆ NvOsMutexUnlock()

void NvOsMutexUnlock ( NvOsMutexHandle  mutex)

This function unlocks a mutex.

Parameters
[in]mutexMutex handle to be unlocked
Returns
N/A
Note
  • Allowed context for the API call
    • This function's safety follow pthread_mutex_unlock() in QNX libc.
  • Is thread safe: Yes
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes