Re: [PATCH v2] CodeSamples: Support for building on different operating systems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2022-08-15 06:37, Elad Lahav wrote:
+	cat api-pthreads/api-$(os_compat).h >> api.h

I didn't want to go overboard here, so it's just the minimum required for having a single per-OS header with specific definitions.


+#ifndef CLOCK_MONOTONIC_RAW
+#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
+#endif

This one wasn't moved to the per-OS header because of the order in which headers are included, which I didn't want to fiddle with. That said, would you be open to changing the ARM64 get_timestamp() to a simple read of the hardware clock? It is architecturally-defined.

--Elad



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux