mirror of
https://github.com/facebook/zstd.git
synced 2024-12-01 20:36:45 +08:00
added POOL_sizeof() for single-thread
This commit is contained in:
parent
c35e535002
commit
6056e4c3eb
@ -198,4 +198,9 @@ void POOL_add(void *ctx, POOL_function function, void *opaque) {
|
||||
function(opaque);
|
||||
}
|
||||
|
||||
size_t POOL_sizeof(POOL_ctx *ctx) {
|
||||
if (ctx==NULL) return 0; /* supports sizeof NULL */
|
||||
return sizeof(*ctx);
|
||||
}
|
||||
|
||||
#endif /* ZSTD_MULTITHREAD */
|
||||
|
Loading…
Reference in New Issue
Block a user