fix document

This commit is contained in:
NishiOwO 2025-04-15 20:53:07 +09:00
parent ed64662540
commit 01fecddffc
No known key found for this signature in database
GPG Key ID: 27EF69B208EB9343
3 changed files with 25 additions and 0 deletions

View File

@ -21,6 +21,7 @@
/**
* @~english
* @brief Register texture
* @param draw Drawing interface
* @param width Width of texture
* @param height Height of texture
* @param data Texture data

View File

@ -1,3 +1,9 @@
/**
* @file
* @~english
* @brief POSIX thread
*/
#define GF_EXPOSE_THREAD
#include <gf_pre.h>
@ -13,6 +19,12 @@
/* Standard */
#include <stdlib.h>
/**
* @~english
* @brief Wrap thread
* @param arg Thread context
* @return NULL
*/
void* gf_wrap_thread(void* arg) {
gf_thread_context_t* ctx = (gf_thread_context_t*)arg;
ctx->func(ctx->data);

View File

@ -1,3 +1,9 @@
/**
* @file
* @~english
* @brief Win32 thread
*/
#define GF_EXPOSE_THREAD
#include <gf_pre.h>
@ -13,6 +19,12 @@
/* Standard */
#include <stdlib.h>
/**
* @~english
* @brief Wrap thread
* @param arg Thread context
* @return 0
*/
DWORD WINAPI gf_wrap_thread(void* arg) {
gf_thread_context_t* ctx = (gf_thread_context_t*)arg;
ctx->func(ctx->data);