Skip to content

Commit 83902c3

Browse files
authored
Optimize Message structure to reduce memory padding (#197)
Signed-off-by: Tarun Balaji Nidiganti <tnidigan@qti.qualcomm.com>
1 parent eee02f9 commit 83902c3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

modula/Common/Include/Message.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
*/
1212
class Message {
1313
protected:
14-
int8_t mReqType; //!< Type of the request. Possible values: TUNE, UNTUNE, RETUNE, TUNESIGNAL, FREESIGNAL.
1514
int64_t mHandle; //!< The unique generated handle for the request.
1615
int64_t mDuration; //!< Duration. -1 means infinite duration.
1716
int32_t mProperties; //!< Request Properties, includes Priority and Background Processing Status.
1817
int32_t mClientPID; //!< Process ID of the client making the request.
1918
int32_t mClientTID; //!< Thread ID of the client making the request.
19+
int8_t mReqType; //!< Type of the request. Possible values: TUNE, UNTUNE, RETUNE, TUNESIGNAL, FREESIGNAL.
2020

2121
public:
2222
Message() : mProperties(0) {}

resource-tuner/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ else()
3939
endif()
4040

4141
add_library(RestuneCore ${SOURCES})
42+
4243
set_target_properties(RestuneCore PROPERTIES VERSION 1.0.0 SOVERSION 1)
4344
target_link_libraries(RestuneCore PUBLIC ${LINK_LIBS})
4445

0 commit comments

Comments
 (0)