join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
local_alloc_test.cpp File Reference
#include <join/statistics.hpp>
#include <join/allocator.hpp>
#include <join/thread.hpp>
#include <gtest/gtest.h>
Include dependency graph for local_alloc_test.cpp:

Functions

 TEST (LocalAlloc, move)
 test move.
 
 TEST (LocalAlloc, allocate)
 test allocate.
 
 TEST (LocalAlloc, tryAllocate)
 test tryAllocate.
 
 TEST (LocalAlloc, deallocate)
 test deallocate.
 
 TEST (LocalAlloc, getIndex)
 test getIndex.
 
 TEST (LocalAlloc, getPtr)
 test getPtr.
 
 TEST (LocalAlloc, reserveAll)
 test reserveAll.
 
 TEST (LocalAlloc, releaseAll)
 test releaseAll.
 
 TEST (LocalAlloc, mlock)
 test mlock.
 
 TEST (LocalAlloc, benchmark)
 test concurrent access.
 
int main (int argc, char **argv)
 main function.
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST() [1/10]

TEST ( LocalAlloc ,
allocate  )

test allocate.

◆ TEST() [2/10]

TEST ( LocalAlloc ,
benchmark  )

test concurrent access.

◆ TEST() [3/10]

TEST ( LocalAlloc ,
deallocate  )

test deallocate.

◆ TEST() [4/10]

TEST ( LocalAlloc ,
getIndex  )

test getIndex.

◆ TEST() [5/10]

TEST ( LocalAlloc ,
getPtr  )

test getPtr.

◆ TEST() [6/10]

TEST ( LocalAlloc ,
mlock  )

test mlock.

◆ TEST() [7/10]

TEST ( LocalAlloc ,
move  )

test move.

◆ TEST() [8/10]

TEST ( LocalAlloc ,
releaseAll  )

test releaseAll.

◆ TEST() [9/10]

TEST ( LocalAlloc ,
reserveAll  )

test reserveAll.

◆ TEST() [10/10]

TEST ( LocalAlloc ,
tryAllocate  )

test tryAllocate.