diff options
author | Alon Levy <alevy@redhat.com> | 2012-08-30 10:35:47 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-08-30 17:08:09 +0300 |
commit | 4f7876e4c86b284db33c50888b759fbd71a630b1 (patch) | |
tree | 611c6c464811a48a1e77e808336f1ac7d30cc105 | |
parent | 1dbe5af2ac25b32578a17a33bf142b173afd72e6 (diff) | |
download | spice-4f7876e4c86b284db33c50888b759fbd71a630b1.tar.gz spice-4f7876e4c86b284db33c50888b759fbd71a630b1.tar.xz spice-4f7876e4c86b284db33c50888b759fbd71a630b1.zip |
server: s/max_encdoers/max_encoders/
-rw-r--r-- | server/glz_encoder_dictionary.c | 12 | ||||
-rw-r--r-- | server/glz_encoder_dictionary_protected.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/server/glz_encoder_dictionary.c b/server/glz_encoder_dictionary.c index efe6cb88..df346d08 100644 --- a/server/glz_encoder_dictionary.c +++ b/server/glz_encoder_dictionary.c @@ -62,7 +62,7 @@ static int glz_dictionary_window_create(SharedDictionary *dict, uint32_t size) dict->window.segs_quota = INIT_IMAGE_SEGS_NUM; dict->window.encoders_heads = (uint32_t *)dict->cur_usr->malloc(dict->cur_usr, - sizeof(uint32_t) * dict->max_encdoers); + sizeof(uint32_t) * dict->max_encoders); if (!dict->window.encoders_heads) { dict->cur_usr->free(dict->cur_usr, dict->window.segs); @@ -101,7 +101,7 @@ static void glz_dictionary_window_reset(SharedDictionary *dict) dict->window.used_segs_tail = NULL_IMAGE_SEG_ID; // reset encoders heads - for (i = 0; i < dict->max_encdoers; i++) { + for (i = 0; i < dict->max_encoders; i++) { dict->window.encoders_heads[i] = NULL_IMAGE_SEG_ID; } @@ -156,7 +156,7 @@ GlzEncDictContext *glz_enc_dictionary_create(uint32_t size, uint32_t max_encoder dict->cur_usr = usr; dict->last_image_id = 0; - dict->max_encdoers = max_encoders; + dict->max_encoders = max_encoders; pthread_mutex_init(&dict->lock, NULL); pthread_rwlock_init(&dict->rw_alloc_lock, NULL); @@ -184,7 +184,7 @@ void glz_enc_dictionary_get_restore_data(GlzEncDictContext *opaque_dict, GLZ_ASSERT(dict->cur_usr, out_data); out_data->last_image_id = dict->last_image_id; - out_data->max_encoders = dict->max_encdoers; + out_data->max_encoders = dict->max_encoders; out_data->size = dict->window.size_limit; } @@ -426,7 +426,7 @@ static WindowImage *glz_dictionary_window_get_new_head(SharedDictionary *dict, i static INLINE int glz_dictionary_is_in_use(SharedDictionary *dict) { uint32_t i = 0; - for (i = 0; i < dict->max_encdoers; i++) { + for (i = 0; i < dict->max_encoders; i++) { if (dict->window.encoders_heads[i] != NULL_IMAGE_SEG_ID) { return TRUE; } @@ -603,7 +603,7 @@ void glz_dictionary_post_encode(uint32_t encoder_id, GlzEncoderUsrContext *usr, GLZ_ASSERT(dict->cur_usr, dict->window.encoders_heads[encoder_id] != NULL_IMAGE_SEG_ID); // get the earliest head in use (not including this encoder head) - for (i = 0; i < dict->max_encdoers; i++) { + for (i = 0; i < dict->max_encoders; i++) { if (i != encoder_id) { if (IMAGE_SEG_IS_EARLIER(dict, dict->window.encoders_heads[i], early_head_seg)) { early_head_seg = dict->window.encoders_heads[i]; diff --git a/server/glz_encoder_dictionary_protected.h b/server/glz_encoder_dictionary_protected.h index ae7fdc20..ee1f8d8e 100644 --- a/server/glz_encoder_dictionary_protected.h +++ b/server/glz_encoder_dictionary_protected.h @@ -119,7 +119,7 @@ struct SharedDictionary { #endif uint64_t last_image_id; - uint32_t max_encdoers; + uint32_t max_encoders; pthread_mutex_t lock; pthread_rwlock_t rw_alloc_lock; GlzEncoderUsrContext *cur_usr; // each encoder has other context. |