Home |
RTKernel-32 Programming Manual Function RTKSemaInfo |
Function RTKSemaInfoRTKSemaInfo writes a list of all currently existing semaphores to a string buffer: void RTKSemaInfo(char * Buffer, unsigned BufferLen); ParametersBufferPointer to the string to receive the list. BufferLenSpecifies the size of the buffer. It should have at least 120+n*60 bytes, where n is the number of currently existing semaphores. RTKSemaInfo will display the semaphore's names, types, values, and a list of all tasks waiting at the respective semaphore. For resource and mutex semaphores, the name of the owning task (if any) is also given. RTKSemaInfo is intended primarily for debugging purposes and contains no protection from semaphore being added/deleted while it executes. While the likelihood is extremely small, RTKSemaInfo can fail if a semaphore is delete while RTKSemaInfo executes.
|