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

Functions

 TEST (LocalAlloc, move)
 test move.
 
 TEST (LocalAlloc, allocate)
 test the allocate method.
 
 TEST (LocalAlloc, tryAllocate)
 test the tryAllocate method.
 
 TEST (LocalAlloc, deallocate)
 test the deallocate method.
 
 TEST (LocalAlloc, mbind)
 test the mbind method.
 
 TEST (LocalAlloc, mlock)
 test the mlock method.
 
 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/7]

TEST ( LocalAlloc ,
allocate  )

test the allocate method.

◆ TEST() [2/7]

TEST ( LocalAlloc ,
benchmark  )

test concurrent access.

◆ TEST() [3/7]

TEST ( LocalAlloc ,
deallocate  )

test the deallocate method.

◆ TEST() [4/7]

TEST ( LocalAlloc ,
mbind  )

test the mbind method.

◆ TEST() [5/7]

TEST ( LocalAlloc ,
mlock  )

test the mlock method.

◆ TEST() [6/7]

TEST ( LocalAlloc ,
move  )

test move.

◆ TEST() [7/7]

TEST ( LocalAlloc ,
tryAllocate  )

test the tryAllocate method.