table of contents
other versions
- stretch 4.5.1-18.1
Ns_ThreadAlloc(3aolserver) | AOLserver Library Procedures | Ns_ThreadAlloc(3aolserver) |
NAME¶
Ns_ThreadAlloc, Ns_ThreadCalloc, Ns_ThreadFree, Ns_ThreadMalloc, Ns_ThreadPool, Ns_ThreadRealloc, Ns_ThreadStrCopy, Ns_ThreadStrDup - Memory allocation functions for threads (deprecated)SYNOPSIS¶
#include "ns.h" void * Ns_ThreadAlloc(size_t size) void * Ns_ThreadCalloc(size_t nelem, size_t elsize) void Ns_ThreadFree(void *ptr) void * Ns_ThreadMalloc(size_t size) Ns_Pool * Ns_ThreadPool(void) void * Ns_ThreadRealloc(void *ptr, size_t size) char * Ns_ThreadStrCopy(char *str) char * Ns_ThreadStrDup(char *str)
DESCRIPTION¶
These functions are deprecated and are actually wrappers around other functions. You should use the other functions directly.- Ns_ThreadAlloc(size)
-
A wrapper for Ns_ThreadMalloc.
- Ns_ThreadCalloc(nelem, elsize)
-
A wrapper for ns_calloc.
- Ns_ThreadFree(ptr)
-
A wrapper for ns_free.
- Ns_ThreadMalloc(size)
-
A wrapper for ns_malloc.
- Ns_ThreadPool()
-
Deprecated. Always returns a -1.
- Ns_ThreadRealloc(ptr, size)
-
A wrapper for ns_realloc.
- Ns_ThreadStrCopy(str)
-
A wrapper for ns_strcopy.
- Ns_ThreadStrDup(str)
-
A wrapper for ns_strdup.
SEE ALSO¶
nsd(1), info(n), ns_calloc(3), ns_malloc(3), ns_realloc(3), ns_free(3), ns_strcopy(3), ns_strdup(3)KEYWORDS¶
4.0 | AOLserver |