This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
import java.util.concurrent.ArrayBlockingQueue; | |
import java.util.concurrent.BlockingQueue; | |
class Producer implements Runnable { | |
private static int count = 0; | |
private Random rg = new Random(); | |
private BlockingQueue<Object> queue = null; | |
public Producer(BlockingQueue<Object> queue) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class EventManager : MonoBehaviour { | |
public bool LimitQueueProcesing = false; | |
public float QueueProcessTime = 0.0f; | |
private static EventManager s_Instance = null; | |
private Queue m_eventQueue = new Queue(); |