Solved Is Server.getScheduler() thread safe?

Discussion in 'Plugin Development' started by MrZoraman, Jan 6, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    MrZoraman

    I know that most of the bukkit api is not thread safe, but there are a select few methods that are thread safe. I don't know where I would find a list of these, hence my question here. I went through the source a bit and it looks ok to use, as the Scheduler object is final, but what do I know?

    Any help is appreciated!

    -Z
     
  2. Offline

    1Rogue

    Are you trying to schedule a task, within a task?
     
  3. Offline

    evilmidget38

    Yes, it's thread safe.
     
  4. Offline

    MrZoraman

    1Rogue
    Yes I am. I'm trying to schedule a sync task from within an async task. I tested it and it puts the sync task back on the main thread, which is what I need.
     
  5. Offline

    xTrollxDudex

    MrZoraman
     
Thread Status:
Not open for further replies.

Share This Page