From c3db9c8142061a1a5b37aafffc6e7a0e8907af57 Mon Sep 17 00:00:00 2001 From: Hridya Valsaraju Date: Mon, 13 Feb 2017 14:38:26 -0800 Subject: [PATCH] Modify method to get MQDescriptor for unsynchronized FMQ. The modified method adds a new parameter specifying if a new unsynchronized FMQ needs to be set up by the server or if it is to return an MQDescriptor to an unsynchronized FMQ that has already been configured by the server(if one exists) Bug: 35319190 Test: FMQ unit tests Change-Id: I64a5b356a2761faaeeea6fdd2c3a7da9b60f0016 --- tests/msgq/1.0/ITestMsgQ.hal | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tests/msgq/1.0/ITestMsgQ.hal b/tests/msgq/1.0/ITestMsgQ.hal index 3ed1b378fd..dfb9be46c2 100644 --- a/tests/msgq/1.0/ITestMsgQ.hal +++ b/tests/msgq/1.0/ITestMsgQ.hal @@ -34,15 +34,19 @@ interface ITestMsgQ { generates(bool ret, fmq_sync mqDesc); /* - * This method requests the service to set up an unsynchronized write - * wait-free FMQ with the client as reader. + * This method requests the service to return an MQDescriptor to + * an unsynchronized FMQ set up by the server. If 'configureFmq' is + * true, then the server sets up a new unsynchronized FMQ. This + * method is to be used to test multiple reader processes. * - * @return ret True if the setup is successful. - * @return mqDesc This structure describes the FMQ that was + * @param configureFmq The server sets up a new unsynchronized FMQ if + * this parameter is true. + * + * @return ret True if successful. + * @return mqDesc This structure describes the unsynchronized FMQ that was * set up by the service. Client can use it to set up the FMQ at its end. */ - configureFmqUnsyncWrite() - generates(bool ret, fmq_unsync mqDesc); + getFmqUnsyncWrite(bool configureFmq) generates(bool ret, fmq_unsync mqDesc); /* * This method request the service to write into the synchronized read/write