macro_rules! thread_types {
    ( $( $fun:ident = $flag:path ; )* ) => { ... };
}