diff options
author | Josh Blum | 2013-08-25 00:16:59 -0700 |
---|---|---|
committer | Josh Blum | 2013-08-30 08:57:16 -0700 |
commit | 6af09fa38df85ac0295b895cd35290b02d1de1f9 (patch) | |
tree | b6fe25dd11301a64a8e3cd28ad2d7855b56f3c22 /lib/sbuffer.cpp | |
parent | b2f40f754acb427a46c4c237cd89c0ee0cdd3c3b (diff) | |
download | sandhi-6af09fa38df85ac0295b895cd35290b02d1de1f9.tar.gz sandhi-6af09fa38df85ac0295b895cd35290b02d1de1f9.tar.bz2 sandhi-6af09fa38df85ac0295b895cd35290b02d1de1f9.zip |
gras: use Theron's Utils.h for numa alloc
Diffstat (limited to 'lib/sbuffer.cpp')
-rw-r--r-- | lib/sbuffer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sbuffer.cpp b/lib/sbuffer.cpp index 40bbc3f..bdf8a6f 100644 --- a/lib/sbuffer.cpp +++ b/lib/sbuffer.cpp @@ -1,7 +1,7 @@ // Copyright (C) by Josh Blum. See LICENSE.txt for licensing information. #include <gras/sbuffer.hpp> -#include "alloc_on_node.hpp" +#include <Theron/Detail/Threading/Utils.h> #include <boost/bind.hpp> using namespace gras; @@ -16,7 +16,7 @@ SBufferConfig::SBufferConfig(void) static void numa_mem_deleter(SBuffer &buff) { - FreeOnNode(buff.get_actual_memory(), buff.get_actual_length()); + Theron::Detail::Utils::FreeOnNode(buff.get_actual_memory(), buff.get_actual_length()); } static void default_allocator_deleter(SBuffer &, char *m) @@ -36,7 +36,7 @@ static void default_allocator(SBufferConfig &config) } else { - config.memory = AllocOnNode(config.affinity, config.length); + config.memory = Theron::Detail::Utils::AllocOnNode(config.affinity, config.length); config.deleter = boost::bind(&numa_mem_deleter, _1); //deal with numa failue case //TODO print warning message if (config.memory == NULL) |