| 50 | std::array<IOSMessageQueue, 750> sMsgQueuePool; |
| 51 | |
| 52 | IOS_ERROR _IOS_GetMessageQueue(IOSMsgQueueId queueHandle, IOSMessageQueue*& queueOut) |
| 53 | { |
| 54 | _assume_lock(); |
| 55 | uint32 index = (queueHandle & 0xFFF); |
| 56 | if (index >= sMsgQueuePool.size()) |
| 57 | return IOS_ERROR_INVALID; |
| 58 | IOSMessageQueue& q = sMsgQueuePool.at(index); |
| 59 | if(q.queueHandle != queueHandle) |
| 60 | return IOS_ERROR_INVALID; |
| 61 | queueOut = &q; |
| 62 | return IOS_ERROR_OK; |
| 63 | } |
| 64 | |
| 65 | IOSMsgQueueId IOS_CreateMessageQueue(IOSMessage* messageArray, uint32 messageCount) |
| 66 | { |
no test coverage detected