Files
WoofWare.PawPrint/CSharpExample/Class1.cs
2025-05-19 16:55:46 +01:00

26 lines
499 B
C#

using System;
using System.IO;
using System.Threading;
namespace HelloWorldApp
{
class Program
{
static int Main(string[] args)
{
object locker = new object();
bool lockTaken = false;
try
{
Monitor.Enter(locker, ref lockTaken);
return 1;
}
finally
{
if (lockTaken)
Monitor.Exit(locker);
}
}
}
}