Re: [PATCH 2/3] lto-plugin: make claim_file_handler thread-safe

2022-06-24 Thread Richard Biener via Gcc-patches
> Am 21.06.2022 um 10:43 schrieb Martin Liška : > > On 6/21/22 09:56, Richard Biener wrote: >>> On Mon, Jun 20, 2022 at 12:20 PM Martin Liška wrote: >>> >>> On 6/20/22 11:32, Richard Biener wrote: On Thu, Jun 16, 2022 at 9:01 AM Martin Liška wrote: > > lto-plugin/ChangeLog: >>

Re: [PATCH 2/3] lto-plugin: make claim_file_handler thread-safe

2022-06-21 Thread Martin Liška
On 6/21/22 09:56, Richard Biener wrote: > On Mon, Jun 20, 2022 at 12:20 PM Martin Liška wrote: >> >> On 6/20/22 11:32, Richard Biener wrote: >>> On Thu, Jun 16, 2022 at 9:01 AM Martin Liška wrote: lto-plugin/ChangeLog: * lto-plugin.c (plugin_lock): New lock.

Re: [PATCH 2/3] lto-plugin: make claim_file_handler thread-safe

2022-06-21 Thread Richard Biener via Gcc-patches
On Mon, Jun 20, 2022 at 12:20 PM Martin Liška wrote: > > On 6/20/22 11:32, Richard Biener wrote: > > On Thu, Jun 16, 2022 at 9:01 AM Martin Liška wrote: > >> > >> lto-plugin/ChangeLog: > >> > >> * lto-plugin.c (plugin_lock): New lock. > >> (claim_file_handler): Use mutex for criti

Re: [PATCH 2/3] lto-plugin: make claim_file_handler thread-safe

2022-06-20 Thread Martin Liška
On 6/20/22 11:32, Richard Biener wrote: > On Thu, Jun 16, 2022 at 9:01 AM Martin Liška wrote: >> >> lto-plugin/ChangeLog: >> >> * lto-plugin.c (plugin_lock): New lock. >> (claim_file_handler): Use mutex for critical section. >> (onload): Initialize mutex. >> --- >> lto-plu

Re: [PATCH 2/3] lto-plugin: make claim_file_handler thread-safe

2022-06-20 Thread Richard Biener via Gcc-patches
On Thu, Jun 16, 2022 at 9:01 AM Martin Liška wrote: > > lto-plugin/ChangeLog: > > * lto-plugin.c (plugin_lock): New lock. > (claim_file_handler): Use mutex for critical section. > (onload): Initialize mutex. > --- > lto-plugin/lto-plugin.c | 16 +++- > 1 file c

[PATCH 2/3] lto-plugin: make claim_file_handler thread-safe

2022-06-16 Thread Martin Liška
lto-plugin/ChangeLog: * lto-plugin.c (plugin_lock): New lock. (claim_file_handler): Use mutex for critical section. (onload): Initialize mutex. --- lto-plugin/lto-plugin.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lto-plugin/lto-p