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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:35 +0000 (18:19 -0400)
commit435ec8afee9c80ab5eaee1a6ec3539c83507a480
tree4a42fb078cf85c2aac6232e27ad554605e49dac6
parent8962156932a77979bf49f5f740feb85519c60bc5
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.024891 seconds and 4 git commands to generate.