This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Lock a resource
#include <sys/iofunc.h> int iofunc_lock( resmgr_context_t * ctp, io_lock_t * msg, iofunc_ocb_t * ocb, iofunc_attr_t * attr );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The function iofunc_lock() does what is required for POSIX locks. This function isn't currently implemented.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
iofunc_lock_calloc(), iofunc_lock_free()
Writing a Resource Manager chapter of the Programmer's Guide.