adding thread current variable for readonly_action flag