Sorry,

Something broke the pasted URL.
https://github.com/mongodb/mongo/blob/master/src/mongo/platform/waitable_atomic.cpp

Another attempt.

Ronald.

Van: Ronald Klop <ronald-li...@klop.ws>
Datum: dinsdag, 23 juli 2024 16:14
Aan: freebsd-po...@freebsd.org
Onderwerp: advice for implementing an atomics wrapper

Hi,

For mongodb 8.0 I need to give a FreeBSD implementation of this file.

https://github.com/mongodb/mongo/blob/master/src/mongo/platform/waitable_atomic.cpp

Using the __Apple__ definition gives:
ld.lld: error: undefined symbol: __ulock_wake
ld.lld: error: undefined symbol: __ulock_wait

And the __linux__ definition uses futex which FreeBSD does not have AFAIK.

What is an easy way to port this file?

Regards,
Ronald.

Reply via email to