Changed name from entry to thread_entry to be more compatible with Ada interface where entry is a keyword.