From: Sam S. <sd...@gn...> - 2010-02-19 18:14:26
|
Vladimir Tzankov wrote: > mutex-lock and exemption-wait accept :timeout argument. The same > behavior can be achieved by using with-timeout but the former is more > efficient - it does not involve thread suspension (at safe points) and > posix signal (SIGUSR1). > > So the question is whether to add :timeout argument to thread-join > (and return :timeout as second value in case thread has not ended)? > This will be consistent with other MT waiting functions (all of them > accept :timeout). Use case is to wait on thread for certain time and > interrupt it if timeout elapses. WDYT? I don't see how this could hurt. |