|
From: | Paolo Bonzini |
Subject: | Re: [PATCH 4/6] progressmeter: protect with a mutex |
Date: | Tue, 11 May 2021 14:28:00 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
On 10/05/21 13:28, Vladimir Sementsov-Ogievskiy wrote:
Could we instead add a c file and add the structure private? Then we'll have progress_new() and progress_free() APIs instead.This way, it would be a lot simpler to control that nobady use structure fields directly.
I don't know... I prefer embedding structs to heap allocation. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |