Git Product home page Git Product logo

Comments (8)

enh-google avatar enh-google commented on July 21, 2024

is plain old __attribute__((__deprecated__(("use foo instead")))) a better choice then, since it includes a user-provided diagnostic?

from ndk.

DanAlbert avatar DanAlbert commented on July 21, 2024

__attribute__((availability)) supports that too. We don't expose that in __REMOVED_IN() though, and that's the fix we need.

from ndk.

enh-google avatar enh-google commented on July 21, 2024

oh, yeah, that seems like a bug in __REMOVED_IN() --- i vote we require an explanation...

from ndk.

DanAlbert avatar DanAlbert commented on July 21, 2024

Don't know why I didn't think of that, or why we didn't do that in the first place :) +1

from ndk.

FaisalAhmedAlghamdi avatar FaisalAhmedAlghamdi commented on July 21, 2024

Status? SDL will not compile for android because of this bug

from ndk.

enh-google avatar enh-google commented on July 21, 2024

Status? SDL will not compile for android because of this bug

this bug won't fix any builds --- this bug will just give you a compiler diagnostic explaining that you need to switch from ALooper_pollAll() to ALooper_pollOnce().

from ndk.

enh-google avatar enh-google commented on July 21, 2024

but, yes, it looks like even SDL 3.0 relies on ALooper_pollAll(): https://github.com/libsdl-org/SDL/blob/12b6c17575a4b24539b7d17625232fff899c90cf/src/sensor/android/SDL_androidsensor.c#L73

from ndk.

DanAlbert avatar DanAlbert commented on July 21, 2024

It also uses ALooper_wake, so this is not a false positive. That's a bug in SDL.

EDIT: It may not be. The bug happens if you use pollAll in combination with both events signaled by callbacks and those signaled by wait. There's definitely a wait in that code. Whether there's a callback or not is not depends on how the sensor API is implemented in the OS, I think.

Okay, looking even more closely, it's not just in combination with callbacks, and wake and any other event, so yes, that probably does have the bug. See the discussion post I added to the OP for more info.

from ndk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.