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:
Fengwei Yin 2014-03-20 16:45:05 +08:00
parent cdbf28b3f7
commit 0c7c81f5a6

View File

@ -49,7 +49,7 @@ public:
struct Header { struct Header {
uint32_t type; uint32_t type;
uint32_t id; uint32_t id;
nsecs_t timestamp; nsecs_t timestamp __attribute__((aligned(8)));
}; };
struct VSync { struct VSync {