Cleanup pthread code for data layers
authorTANGUY Arnaud <arn.tanguy@gmail.com>
Wed, 16 Jul 2014 13:20:15 +0000 (15:20 +0200)
committerTANGUY Arnaud <arn.tanguy@gmail.com>
Thu, 24 Jul 2014 14:18:52 +0000 (16:18 +0200)
commit57d7ecbc464c36cbf635ebb8bc510b003f7944f1
tree072d32a69f5d9550e476480ba8662612925ef0bd
parent95e1e24d73091b7b27e1772736f20161249e2c28
Cleanup pthread code for data layers

Get rid of the ugly "friend" thread function. Simplify the creation of the
thread by inheriting from a base class. Thus, defining the thread is as
simple as overriding a virtual function.
include/caffe/data_layers.hpp
include/caffe/internal_thread.hpp [new file with mode: 0644]
src/caffe/layers/data_layer.cpp
src/caffe/layers/image_data_layer.cpp
src/caffe/layers/window_data_layer.cpp
src/caffe/test/test_power_layer.cpp