Re: advice for implementing an atomics wrapper
- In reply to: Ronald Klop : "advice for implementing an atomics wrapper"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Jul 2024 14:16:44 UTC
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-lists@klop.ws> Datum: dinsdag, 23 juli 2024 16:14 Aan: freebsd-ports@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. >