Fix: lib: do not check the frozen state in bt_X_set_is_frozen()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 7 Aug 2018 23:32:16 +0000 (19:32 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:07:36 +0000 (00:07 -0400)
commit59e3c4db009ddcef01ad326567d86841acb8e2d2
treea2ac1a7073f25d98cf6f791b6f680597d11dd68c
parent13d8036992cf2ab26e68508d7d2f9bf04ecf4ad6
Fix: lib: do not check the frozen state in bt_X_set_is_frozen()

Some freezing functions were called bt_X_freeze() and were transformed
into freezing/thawing functions bt_X_set_is_frozen(), accepting the
frozen state as a parameter. The optimization checks to avoid refreezing
when the object is already frozen were left, but we can thaw now, so we
must not check this.

It could be optimized again, but those specific freezing functions are
only enabled in developer mode, so it's not a complete catastrophe.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
lib/ctf-ir/event.c
lib/ctf-ir/fields.c
lib/ctf-ir/packet.c
This page took 0.025903 seconds and 4 git commands to generate.