bool tryPush(T const& item) {
     T* const ptr(tryBeginPush());
     if( ptr ) {
         STRUCTORS::construct(*ptr, item);
         endPush();
         return true;
     } else {
         return false;
     }
 }
Ejemplo n.º 2
0
void KaqazDropBox::localListUpdated()
{
    if( !p->password_setted )
        return;
    if( !beginPush(UPDATE_KEY) )
        return;

    BEGIN_FNC_DEBUG
    if( p->on_fnc_call.count() != 1 )
    {
        refresh();
        endPush(UPDATE_KEY);
        END_FNC_DEBUG
        return;
    }