Skip to content

Commit 0bf52a9

Browse files
CompositorBufferType: EventFrame should be 64bit also on 32bit
1 parent e7d02e0 commit 0bf52a9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Source/compositorbuffer/include/compositorbuffer/CompositorBufferType.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,10 @@ namespace Compositor {
3737
template <const uint8_t PLANES>
3838
class CompositorBufferType : public Exchange::ICompositionBuffer, public Core::IResource {
3939
private:
40-
// We need to test this on a 32 bit platform. On 64 bits platforms we do need
41-
// the data to be written into the eventfd to be 64 bits otherwise it does not
42-
// respond!
43-
#if defined(__SIZEOF_POINTER__) && (__SIZEOF_POINTER__ == 8)
40+
/***
41+
* We need a 64bit according: https://github.com/torvalds/linux/blob/v6.1/fs/eventfd.c#L275
42+
*/
4443
using EventFrame = uint64_t;
45-
#else
46-
using EventFrame = uint32_t;
47-
#endif
4844

4945
// We need some shared space for data to exchange, and to create a lock..
5046
class SharedStorage {

0 commit comments

Comments
 (0)