We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以下是改进的代码 就这水平就别出来丢人了
private readonly List<Event> m_EventsFuckJiangYin = new List<Event>(); /// <summary> /// 事件池轮询。 /// </summary> /// <param name="elapseSeconds">逻辑流逝时间,以秒为单位。</param> /// <param name="realElapseSeconds">真实流逝时间,以秒为单位。</param> public void Update(float elapseSeconds, float realElapseSeconds) { lock (m_Events) { m_EventsFuckJiangYin.AddRange(m_Events); m_Events.Clear(); } try { for (int i = 0; i < m_EventsFuckJiangYin.Count; i++) { Event eventNode = m_EventsFuckJiangYin[i]; HandleEvent(eventNode.Sender, eventNode.EventArgs); ReferencePool.Release(eventNode); } } finally { m_EventsFuckJiangYin.Clear(); } }
The text was updated successfully, but these errors were encountered:
人家涉及出来就不考虑跨线程,单线程你上来加个锁?下次多思考下为什么这么设计,菜就多练、谦虚点
Sorry, something went wrong.
No branches or pull requests
以下是改进的代码
就这水平就别出来丢人了
The text was updated successfully, but these errors were encountered: