2024年3月9日发(作者:)
lock ( Current._delayed )
{
Current._(new DelayedQueueItem { time = + time, action = action });
}
}
else
{
lock ( Current._actions )
{
Current._(action);
}
}
}
public static Thread RunAsync(Action a)
{
Initialize();
while ( numThreads >= maxThreads )
{
(1);
}
ent(ref numThreads);
serWorkItem(RunAction, a);
return null;
}
private static void RunAction(object action)
{
try
{
((Action)action)();
}
catch
{
}
finally
{
ent(ref numThreads);
}
}
void OnDisable()
{
if ( _current == this )
{
_current = null;
}
}
// Use this for initialization
void Start()
{
}
List
// Update is called once per frame
void Update()
{
lock ( _actions )
{
_();
_ge(_actions);
_();


发布评论