mirror of
https://github.com/lammertb/libhttp.git
synced 2025-08-09 03:22:45 +03:00
Made httplib_pthread_self global
This commit is contained in:
19
doc/api/httplib_pthread_self.md
Normal file
19
doc/api/httplib_pthread_self.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# LibHTTP API Reference
|
||||
|
||||
### `httplib_pthread_self();`
|
||||
|
||||
### Parameters
|
||||
|
||||
*none*
|
||||
|
||||
### Return Value
|
||||
|
||||
| Type | Description |
|
||||
| :--- | :--- |
|
||||
|`pthread_t`|An identifier specific for the current thread|
|
||||
|
||||
### Description
|
||||
|
||||
The function `httplib_pthread_self()` is a platform indepent function which returns an identifier which identifies the current thread. On systems which support it this is done with a call to the `pthread_self()` function. On other systems an OS specific function is used with equivalent functionality.
|
||||
|
||||
### See Also
|
Reference in New Issue
Block a user