Locking the combo-box

x::w::standard_combobox_lock lock{cbmanager};

size_t s=lock->size();
x::w::text_param s=lock->item(0);

As is the case with all of LibCXXW's display elements, an internal execution thread takes care of processing display server events and updating the combo-box. Instantiating a x::w::standard_combobox_lock acquires an internal lock that blocks all other execution threads from accessing the combo-box. Afterwards, x::w::standard_combobox_lock's methods update the combo-box with a consistent snapshot of its current contents, and state.