yuzu/src/core/hle
Zephyron 14378f5c16 nvnflinger: Implement reference counting for binder objects
Implements proper reference counting for binder objects based on the official
documentation. This adds both weak and strong reference counting support to
the IBinder interface and its implementations (BufferQueueProducer and
BufferQueueConsumer).

The implementation follows the documented behavior where:
- type 0 affects weak references
- type 1 affects strong references
- During initialization: {addval=1, type=0} followed by {addval=1, type=1}
- For onFirstRef: {addval=1, type=1}
- For onLastStrongRef: {addval=-1, type=1}

Reference counters are implemented using std::atomic to ensure thread safety.

REFS: switchbrew.org/wiki/Nvnflinger_services#AdjustRefcount
2025-05-11 14:29:04 +01:00
..
kernel kernel: Implement SystemResourceSize info type for VAMM initialization 2025-05-11 12:17:03 +01:00
service nvnflinger: Implement reference counting for binder objects 2025-05-11 14:29:04 +01:00
api_version.h chore(HLE): Update HLE API version constants 2024-12-20 15:24:58 +00:00
ipc.h chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
result.h core: Add new error modules to ErrorModule enum 2024-12-20 15:24:58 +00:00