Skip to content

Commit

Permalink
Run clang-format + useful regex: !NEW>[\S\s]*?!NEW<|!NEW.*\n.*
Browse files Browse the repository at this point in the history
  • Loading branch information
gresm committed May 21, 2024
1 parent ae16114 commit f4b65ef
Show file tree
Hide file tree
Showing 2 changed files with 232 additions and 256 deletions.
14 changes: 7 additions & 7 deletions src_c/_pygame.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ PG_SurfaceHasRLE(SDL_Surface *surface);

#endif

/* DictProxy is useful for event posting with an arbitrary dict/event object. Maintains
* state of number of events on queue and whether the owner of this struct
* wants this dict/event instance freed. This DictProxy is only to be freed when there are no
* more instances of this DictProxy on the event queue. Access to this is
* safeguarded with a per-proxy spinlock, which is more optimal than having
* to hold GIL in case of event timers */
/* DictProxy is useful for event posting with an arbitrary dict/event object.
* Maintains state of number of events on queue and whether the owner of this
* struct wants this dict/event instance freed. This DictProxy is only to be
* freed when there are no more instances of this DictProxy on the event queue.
* Access to this is safeguarded with a per-proxy spinlock, which is more
* optimal than having to hold GIL in case of event timers */
typedef struct _pgEventDictProxy {
PyObject *obj; // Either dict or event object.
PyObject *obj; // Either dict or event object.
SDL_SpinLock lock;
int num_on_queue;
Uint8 do_free_at_end;
Expand Down
Loading

0 comments on commit f4b65ef

Please sign in to comment.