HomeClusterLabs Projects

Refactor: controller: Use GQueue for FSA message queue
205e8ab24250Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: controller: Use GQueue for FSA message queue

This makes more semantic sense, and it avoids expensive linked list
traversals to append to the message queue. g_queue_push_tail() jumps
straight to the end.

There are some opportunities to use g_queue_foreach() and
g_queue_free_full(). I've avoided that for now and used the queue head
as a list directly, to minimize the size of this diff.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mon, Aug 25, 8:12 PM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.