gthread

add custom gthread class