Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix another race in log initializations.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 13 Feb 2012 09:37:32 +0000 (10:37 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 13 Feb 2012 09:52:18 +0000 (10:52 +0100)
commit1f27be8ecd303fa9f686a2ca2ad1987cc4658180
tree8c6a7b1cfcfabfe951c708c2a6274f1834d240d0
parent46480f4e2718f823bb016962c1656f0d4818070d
Fix another race in log initializations.

Since setting the threshold is not the last thing done when a category
is initialized, there is a possibility that a message is logged with wrong
parameters (e.g. format or appender).

Define a new field "initialized" which is set to 1 only when the category
is fully initialized.
include/xbt/log.h
src/xbt/log.c