Java tutorial
//package com.java2s; //License from project: Apache License public class Main { private static volatile Thread sCurrentThread; public static void setRenderThread() { sCurrentThread = Thread.currentThread(); } }