use boost thread to support multi-thread for reigsiterer.