Changeset 611 for trunk/kernel/libk
- Timestamp:
- Jan 9, 2019, 3:02:51 PM (6 years ago)
- Location:
- trunk/kernel/libk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_mutex.c
r581 r611 137 137 #if DEBUG_MUTEX 138 138 thread_t * this = CURRENT_THREAD; 139 if( (uint32_t)hal_get_cycles() > DEBUG_ QUEUELOCK)139 if( (uint32_t)hal_get_cycles() > DEBUG_MUTEX ) 140 140 printk("\n[DBG] %s : thread %x in %x process / mutex(%x,%x)\n", 141 141 __FUNCTION__, this->trdid, this->process->pid, local_cxy, mutex_ptr ); -
trunk/kernel/libk/remote_mutex.h
r581 r611 38 38 * This user type is implemented as an unsigned long, but the value is not used by the 39 39 * kernel. ALMOS-MKH uses only the mutex virtual address as an identifier. 40 * For each user mutex, ALMOS-MKH creates a kernel "remote_mutex_t" structure, 41 * dynamically allocated in the reference cluster by the remote_mutex_create() function,42 * anddestroyed by the remote_mutex_destroy() function, using RPC if the calling thread40 * For each user mutex, ALMOS-MKH creates a kernel "remote_mutex_t" structure, allocated 41 * in the user process reference cluster by the remote_mutex_create() function, and 42 * destroyed by the remote_mutex_destroy() function, using RPC if the calling thread 43 43 * is not running in the reference cluster. 44 44 * -
trunk/kernel/libk/string.h
r457 r611 49 49 /******************************************************************************************** 50 50 * This function compares lexicographically the strind s1 and s2. 51 * characters are considered unsigned.51 * Characters are considered unsigned. 52 52 * I does not compare characters after the first NUL character. 53 53 ******************************************************************************************** … … 61 61 /******************************************************************************************** 62 62 * This function compares lexicographically the strind s1 and s2. 63 * I does not compare than <n> characters and stops after the first NUL character.63 * I does not compare more than <n> characters and stops after the first NUL character. 64 64 ******************************************************************************************** 65 65 * @ s1 : pointer on string. -
trunk/kernel/libk/xhtab.h
r610 r611 32 32 33 33 /////////////////////////////////////////////////////////////////////////////////////////// 34 // This file define a generic, embedded, remotely accessible hash table.34 // This file define a generic, embedded, remotely accessible, hash table. 35 35 // 36 36 // It can be accessed by any thread, running in any cluster. … … 39 39 // For this purpose the set of all registered items is split in several subsets. 40 40 // Each subset is organised as an embedded double linked xlists. 41 // - an item is uniquely identified by a <key>, that is a single uint32_t value. 42 // - From the <key> value, the hash table uses an item type specific xhtab_index() 41 // - an item is uniquely identified by a <key>, that is a item specific pointer, 42 // that can be a - for example - a char* defining the item "name". 43 // - From the <key> value, the hash table uses an item type specific index_from_key() 43 44 // function, to compute an <index> value, defining a subset of registered items. 44 45 // - to discriminate between items that have the same <index>, the hash table makes 45 // an associative search on the key in subset. 46 // an associative search on the key in subset, using the item type specific 47 // item_match_key() function. 46 48 // - Each registered item is a structure, that must contain an embedded xlist_entry, 47 49 // that is part of the xlist implementing the subset. 48 50 // 49 51 // For all registered items, a total order is defined by the increasing index values, 50 // and for each index value, by the position in the partial xlist.52 // and for each index value, by the position in the xlist implementing a subset. 51 53 // This order is used by the two functions xhtab_get_first() and xhtab_get_next(), that 52 54 // are used to scan all registered items. The two "current_index" and "current_xlist_xp"
Note: See TracChangeset
for help on using the changeset viewer.