Uploaded image for project: 'XNIO'
  1. XNIO
  2. XNIO-376

Improve WorkerThreadFactory to make a created thread execute tasks on thread exits

XMLWordPrintable

      Upgrade JBoss Threads to 2.4.0.Final and use JBossThread for task worker thread.
      Also, add a new utility method addTaskOnThreadExit(Runnable task) to register a runnable task to be executed when the current thread exits.

      After the discussion on PR, the final fix does not require JBossThread's thread exit hook feature (JBTR-55). Instead, just improve XnioWorker$WorkerThreadFactory to make a created thread execute Xnio#handleThreadExit() on the task worker thread exits.

            rhn-support-mmiura Masafumi Miura
            rhn-support-mmiura Masafumi Miura
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: