fn checkID_setUseOrNotuse(id1: u64, id2: u64,
	uuid_top: u64, uuid_bottom: u64, bUse: bool,/* lr: u64, bEntryEval: bool*/) -> bool/*Option<u64> */{
	let mut slist_lock = G_SCB_LIST.lock();

	if let Some(ref mut vSCB) = *slist_lock {
		for scb in vSCB {
			if scb.m_processId == id1 && scb.m_threadId == id2 &&
				scb.m_uuidTop == uuid_top && scb.m_uuidBottom == uuid_bottom {
				scb.m_bInUse = bUse;
				// if bUse { scb.m_lr = lr; }
				// return Some(scb.m_lr);
				return true;
			}
		}
	} else {
		ymh_log_str("ERROR - checkID_setUseOrNotuse()\n\0");
		loop {}
	}

	// None
	return false;
}
/* Find a SCB instnace with id, uuid_top, and uuid_bottom
 * [OLD] Returns None if not found
 * [OLD] Returns the SCB's LR if found
 * Returns false if not found
 * Returns true  if found
 *
 * @lr: ignored when bUse is false
 */
Find a SCB instnace with id, uuid_top, and uuid_bottom
[OLD] Returns None if not found
[OLD] Returns the SCB's LR if found
Returns false if not found
Returns true  if found

@lr: ignored when bUse is false
Find a SCB instnace with id uuid_top and uuid_bottom [ OLD ] Returns None if not found [ OLD ] Returns the SCB ' s LR if found Returns false if not found Returns true if found @lr : ignored when bUse is false
fn checkID_setUseOrNotuse(id1: u64, id2: u64,
	uuid_top: u64, uuid_bottom: u64, bUse: bool,/* lr: u64, bEntryEval: bool*/) -> bool/*Option<u64> */{
	let mut slist_lock = G_SCB_LIST.lock();
	if let Some(ref mut vSCB) = *slist_lock {
		for scb in vSCB {
			if scb.m_processId == id1 && scb.m_threadId == id2 &&
				scb.m_uuidTop == uuid_top && scb.m_uuidBottom == uuid_bottom {
				scb.m_bInUse = bUse;
				// if bUse { scb.m_lr = lr; }
				// return Some(scb.m_lr);
				return true;
			}
		}
	} else {
		ymh_log_str("ERROR - checkID_setUseOrNotuse()\n\0");
		loop {}
	}
	// None
	return false;
}
fn checkID_setUseOrNotuse ( id1 : u64 , id2 : u64 , uuid_top : u64 , uuid_bottom : u64 , bUse : bool , /* lr: u64, bEntryEval: bool*/ ) -> bool /*Option<u64> */ { let mut slist_lock = G_SCB_LIST . lock ( ) ; if let Some ( ref mut vSCB ) = * slist_lock { for scb in vSCB { if scb . m_processId == id1 && scb . m_threadId == id2 && scb . m_uuidTop == uuid_top && scb . m_uuidBottom == uuid_bottom { scb . m_bInUse = bUse ; // if bUse { scb.m_lr = lr; } // return Some(scb.m_lr); return true ; } } } else { ymh_log_str ( " \n \0 " ) ; loop { } } // None return false ; }
Find a SCB instnace with id, uuid_top, and uuid_bottom
 [OLD] Returns None if not found
 [OLD] Returns the SCB's LR if found
 Returns false if not found
 Returns true  if found
Find a SCB instnace with id uuid_top and uuid_bottom [ OLD ] Returns None if not found [ OLD ] Returns the SCB ' s LR if found Returns false if not found Returns true if found
id1
u64
id2
u64
uuid_top
u64
uuid_bottom
u64
bUse
bool
id1
u64
id2
u64
uuid_top
u64
uuid_bottom
u64
bUse
bool