| | |
| | | TAILQ_ENTRY(tailq_entry_t) joint; |
| | | } tailq_entry_t; |
| | | |
| | | static int hashtable_mutex; |
| | | |
| | | #define START_KEY 1000 |
| | | |
| | | typedef TAILQ_HEAD(tailq_header_t, tailq_entry_t) tailq_header_t; |
| | |
| | | |
| | | } |
| | | |
| | | void* _hashtable_put(hashtable_t *hashtable, int key, void *value) |
| | | void * _hashtable_put(hashtable_t *hashtable, int key, void *value) |
| | | { |
| | | size_t code = hashcode(key); |
| | | void *oldvalue; |
| | |
| | | return res; |
| | | } |
| | | |
| | | void* hashtable_put(hashtable_t *hashtable, int key, void *value) { |
| | | void hashtable_put(hashtable_t *hashtable, int key, void *value) { |
| | | SemUtil::dec(hashtable->mutex); |
| | | while (hashtable->readcnt > 0) |
| | | { |
| | |
| | | } |
| | | } |
| | | return keyset; |
| | | } |
| | | } |