2016-04-03 20:52:32 -04:00
|
|
|
/* threadless.io
|
|
|
|
* Copyright (c) 2016 Justin R. Cutler
|
|
|
|
* Licensed under the MIT License. See LICENSE file in the project root for
|
|
|
|
* full license information.
|
|
|
|
*/
|
|
|
|
/** @file
|
2016-04-03 20:57:25 -04:00
|
|
|
* default allocator interface definition
|
2016-04-03 20:52:32 -04:00
|
|
|
* @author Justin R. Cutler <justin.r.cutler@gmail.com>
|
|
|
|
*/
|
|
|
|
#ifndef THREADLESS_DEFAULT_ALLOCATOR_H
|
|
|
|
#define THREADLESS_DEFAULT_ALLOCATOR_H
|
|
|
|
|
|
|
|
/* allocator_t */
|
|
|
|
#include <threadless/allocation.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
/** Get default allocator instance
|
|
|
|
* @returns default allocator
|
|
|
|
*/
|
2016-04-04 11:09:27 -04:00
|
|
|
allocator_t *default_allocator_get(void);
|
2016-04-03 20:52:32 -04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* THREADLESS_DEFAULT_ALLOCATOR_H */
|