Comment #14 on issue 248 by [email protected]: protobuf will not compile without thread library
http://code.google.com/p/protobuf/issues/detail?id=248
I had a look at the proposed patch, the one that cannot be merged into GPB release... Just a thought: once.h is compiled either as part of GPB itself or as part of generated pb.cc file. I think the compilation of GPB itself can be handled by adding a configure option that will add a definition of 'PROTOBUF_WITHOUT_THREAD_SAFETY' to the CC_FLAGS or config.h. The second scenario, compilation of a generated pb.cc file can be handled by an option to the code generator that will define this symbol in the scope of the pb.cc file (only).
I know that this approach makes room for erroneous situations like thread-less GPB with a thread-enabled generated classes, but I think there must be a way to fix this.
is this approach acceptable in any way? Eyal. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
