mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 12:14:39 +00:00
fix document
This commit is contained in:
parent
ed64662540
commit
01fecddffc
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user