meta: add explicit sync metadata and data type
Change the GenericFd data type to SyncObj. It's probably better to explicitly state the data type than to make something generic. Otherwise we would need to transfer the specific fd type somewhere else and there is no room for that in the buffer and the the metadata is not a good idea either because it can be modified and corrupted at runtime. Add the SyncTimeline metadata. This contains 2 points on two timelines (SyncObj datas in the buffer). The buffer can be accessed when the acquire_point is signaled on the timeline and when the buffer can be released, the release_point on the timeline should be signaled.
Showing
- spa/include/spa/buffer/buffer.h 2 additions, 4 deletionsspa/include/spa/buffer/buffer.h
- spa/include/spa/buffer/meta.h 16 additions, 0 deletionsspa/include/spa/buffer/meta.h
- spa/include/spa/buffer/type-info.h 2 additions, 1 deletionspa/include/spa/buffer/type-info.h
- spa/include/spa/param/buffers.h 2 additions, 2 deletionsspa/include/spa/param/buffers.h
- src/modules/module-client-node/client-node.c 1 addition, 1 deletionsrc/modules/module-client-node/client-node.c
- test/test-spa-buffer.c 3 additions, 2 deletionstest/test-spa-buffer.c
Loading
Please register or sign in to comment