make struct Event layout consistent on 32/64-bit
To make struct Event have consistent memory layout between x86 and x86_64, force nsecs_t timestamp align to 64bit because it's not true for x86. Change-Id: I49eaddd89e10d595cf6a5130f9762b5388c96625 Signed-off-by: Fengwei Yin <fengwei.yin@intel.com>
This commit is contained in:
parent
cdbf28b3f7
commit
0c7c81f5a6
@ -49,7 +49,7 @@ public:
|
||||
struct Header {
|
||||
uint32_t type;
|
||||
uint32_t id;
|
||||
nsecs_t timestamp;
|
||||
nsecs_t timestamp __attribute__((aligned(8)));
|
||||
};
|
||||
|
||||
struct VSync {
|
||||
|
Loading…
Reference in New Issue
Block a user