On 01/13/2010 03:38 PM, Pavel Sanda wrote:
Richard Heck wrote:
I guess the only thing to do would be to have a way of locking the stream,
e.g.:
out<< Lock()<< t1a<< t1b<< Unlock();
Things coming from elsewhere could be cached until the lock is released.
Perhaps this is not so difficult, even, if we use the LYXERR macros, since
the lock and unlock modifiers could go into the macro.
this would imply to use this lock() creature everywhere in our sources...
not much nice.
Yes, I know, but that's what I meant about the macros. I'm not sure why
we even use this constuct:
lyxerr << stuff
anymore, instead of:
LYXERR0(stuff);
The latter ends the newline that always seems to be needed, and gives
the file position and stuff, too. I guess if we didn't want that, we
could do a new macro and let a sed-script handle it.
rh