docs: documented thread safety in graphics renderer

This commit is contained in:
antifallobst 2023-03-03 18:03:08 +01:00
parent 0042786b77
commit bb4323ef79
1 changed files with 2 additions and 0 deletions

View File

@ -777,6 +777,8 @@ A global usable 8x8 font.
| buffer_size | uint64_t | The size of `back_buffer` (in bytes) | | buffer_size | uint64_t | The size of `back_buffer` (in bytes) |
| graphics_buffer_layers | graphics_buffer_T** | List of pointers to the first graphics_buffer of every layer | | graphics_buffer_layers | graphics_buffer_T** | List of pointers to the first graphics_buffer of every layer |
| font | font_T | The font, all graphics buffers use to draw chars (could be moved to `graphics_buffer_T`) | | font | font_T | The font, all graphics buffers use to draw chars (could be moved to `graphics_buffer_T`) |
| initialized | bool | Indicates whether the renderer is initialized or not |
| blocked | bool | Blocking variable that is used for thread safety in `graphics_renderer_update` |
#### `graphics_buffer_request(pos_x, pos_y, width, height, layer)` - function (graphics_buffer_T*) #### `graphics_buffer_request(pos_x, pos_y, width, height, layer)` - function (graphics_buffer_T*)