|
@@ -1427,9 +1427,15 @@ extern SDL_DECLSPEC void * SDLCALL SDL_AllocateEventMemory(size_t size);
|
|
|
/**
|
|
|
* Free temporary event memory allocated by SDL.
|
|
|
*
|
|
|
- * This function frees temporary memory allocated for events and APIs that return temporary strings. This memory is local to the thread that creates it and is automatically freed for the main thread when pumping the event loop. For other threads you may want to call this function periodically to free any temporary memory created by that thread.
|
|
|
- *
|
|
|
- * Note that if you call SDL_AllocateEventMemory() on one thread and pass it to another thread, e.g. via a user event, then you should be sure the other thread has finished processing it before calling this function.
|
|
|
+ * This function frees temporary memory allocated for events and APIs that
|
|
|
+ * return temporary strings. This memory is local to the thread that creates
|
|
|
+ * it and is automatically freed for the main thread when pumping the event
|
|
|
+ * loop. For other threads you may want to call this function periodically to
|
|
|
+ * free any temporary memory created by that thread.
|
|
|
+ *
|
|
|
+ * Note that if you call SDL_AllocateEventMemory() on one thread and pass it
|
|
|
+ * to another thread, e.g. via a user event, then you should be sure the other
|
|
|
+ * thread has finished processing it before calling this function.
|
|
|
*
|
|
|
* \threadsafety It is safe to call this function from any thread.
|
|
|
*
|