renaming channel.cpp to channel_pthread.cpp
adding c++11 channel version