glog and boost thread

51 views
Skip to first unread message

bp

unread,
Feb 8, 2012, 6:20:36 PM2/8/12
to google-glog
Hi,

I recently joined an embedded software project. The project used boost
thread library to spawn two boost threads from main thread. The
logging capability of project was very primitive using just cout/cerr.
I integrated the glog library for the ARM processor based gnu cross
compiler setup. Everything works fine with glog when I run in single
thread scenario. When I spawn the boost thread and call glog logging
in it (example: LOG(INFO), LOG(ERROR),..etc) it does not work. Can I
use glog in boost threads?
If I cannot use glog in boost threads, can glog work with pthreads (I
will replace boost threads with pthreads).?
Thanks for any help.

bhavesh
Reply all
Reply to author
Forward
0 new messages