| | |
| | | #include "stdafx.h" |
| | | #include "CGlass.h" |
| | | #include "Log.h" |
| | | |
| | | |
| | | namespace SERVO { |
| | |
| | | } |
| | | |
| | | bool CGlass::queue() { |
| | | LOGI("CGlass::queue 01 %s", m_strID.c_str()); |
| | | if (m_state != GlsState::NoState) return false; |
| | | markQueued(); |
| | | LOGI("CGlass::queue 02 %s", m_strID.c_str()); |
| | | return true; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | bool CGlass::complete() { |
| | | LOGI("CGlass::complete 01 %s", m_strID.c_str()); |
| | | if (m_state != GlsState::InProcess && m_state != GlsState::Paused) return false; |
| | | m_state = GlsState::Completed; |
| | | markEnd(); |
| | | LOGI("CGlass::complete 02 %s", m_strID.c_str()); |
| | | return true; |
| | | } |
| | | |