Example #1
0
 public bool Free()
 {
     if (status == VERTICE_STATUS.IN_WORK)
     {
         status = VERTICE_STATUS.FREE;
         return(true);
     }
     return(false);
 }
Example #2
0
 public bool Take()
 {
     if (status == VERTICE_STATUS.FREE)
     {
         status = VERTICE_STATUS.IN_WORK;
         return(true);
     }
     return(false);
 }