For example, triggering the getMessages end will not call removeThread except all the threads getMessages triggered.