This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Allocate memory to lock structures
#include <sys/iofunc.h> iofunc_lock_list_t *iofunc_lock_calloc ( resmgr_context_t *ctp, IOFUNC_OCB_T *ocb, size_t size );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The function iofunc_lock_calloc() is used by iofunc_lock() to allocate memory to lock structures.
A pointer to a zeroed buffer that the POSIX layer uses for locks, or NULL if no memory could be allocated.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
iofunc_lock(), iofunc_lock_free()
Writing a Resource Manager chapter of the Programmer's Guide.