mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 18:15:44 +00:00
Wrap remaining Pipe access in lock
This commit is contained in:
parent
29f40b88af
commit
262c3f1b4f
1 changed files with 7 additions and 4 deletions
|
|
@ -23,6 +23,8 @@ public abstract class PipeArgument
|
||||||
public abstract string Text { get; }
|
public abstract string Text { get; }
|
||||||
|
|
||||||
public void Pre()
|
public void Pre()
|
||||||
|
{
|
||||||
|
lock (_pipeLock)
|
||||||
{
|
{
|
||||||
if (Pipe != null)
|
if (Pipe != null)
|
||||||
{
|
{
|
||||||
|
|
@ -31,6 +33,7 @@ public abstract class PipeArgument
|
||||||
|
|
||||||
Pipe = new NamedPipeServerStream(PipeName, _direction, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous);
|
Pipe = new NamedPipeServerStream(PipeName, _direction, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void Post()
|
public void Post()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue