X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=cds%2Furcu%2Fgeneral_buffered.h;h=63d4db1ca62ad544f4be1a22ccba36725802637c;hb=e360657e258514a73ab99af0bd726c21d05156fc;hp=cd6af3ec8ed7c24f65d4061185e5e3dac0cf9c3e;hpb=305da3404a293d5e5c4e76eb6660eeda5a7d4413;p=libcds.git diff --git a/cds/urcu/general_buffered.h b/cds/urcu/general_buffered.h index cd6af3ec..63d4db1c 100644 --- a/cds/urcu/general_buffered.h +++ b/cds/urcu/general_buffered.h @@ -1,7 +1,7 @@ /* This file is a part of libcds - Concurrent Data Structures library - (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016 + (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017 Source code repo: http://github.com/khizmax/libcds/ Download: http://sourceforge.net/projects/libcds/files/ @@ -97,9 +97,9 @@ namespace cds { namespace urcu { If the buffer is full, \ref synchronize function is invoked. */ template - static void retire_ptr( T * p, void (* pFunc)(T *) ) + static void retire_ptr( T * p, free_retired_ptr_func pFunc ) { - retired_ptr rp( reinterpret_cast( p ), reinterpret_cast( pFunc ) ); + retired_ptr rp( p, pFunc ); retire_ptr( rp ); }