Implement blocking queue
am: 9c2f4d0dbc

Change-Id: I51ff86db093683bb7ba868e0b37e1b6851846583