diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-05-21 10:51:03 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-05-21 10:51:28 +0200 |
commit | 012bd2577975b902aa5ce0cdd0eb43ef57c948fb (patch) | |
tree | 1dc3de75ad4c173d2de3f60cb0c9d78bf4517542 /client/glz_decoder_window.cpp | |
parent | d351bb35ce981d39e839528f4a23bc5b501adab8 (diff) | |
download | spice-012bd2577975b902aa5ce0cdd0eb43ef57c948fb.tar.gz spice-012bd2577975b902aa5ce0cdd0eb43ef57c948fb.tar.xz spice-012bd2577975b902aa5ce0cdd0eb43ef57c948fb.zip |
Fix spelling errors in comments and strings
Diffstat (limited to 'client/glz_decoder_window.cpp')
-rw-r--r-- | client/glz_decoder_window.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/glz_decoder_window.cpp b/client/glz_decoder_window.cpp index 2cdad589..24dfce3e 100644 --- a/client/glz_decoder_window.cpp +++ b/client/glz_decoder_window.cpp @@ -68,14 +68,14 @@ void GlzDecoderWindow::post_decode(GlzDecodedImage *image) /* index: the physical index in the images array. Note that it can't change between waits since the realloc mutex should be read locked. - No starvation for the realloc mutex can occure, since the image we wait for is located before us, + No starvation for the realloc mutex can occur, since the image we wait for is located before us, hence, when it arrives - no realloc is needed. */ void GlzDecoderWindow::wait_for_image(int index) { Lock lock(_new_image_mutex); GlzDecodedImage *image = _images[index]; // can be performed without locking the _win_mutex, - // since it is called after pre and the rw mutex is // locked, hence, physical chnages to the window are - // not allowed. In addtion the reading of the image ptr + // since it is called after pre and the rw mutex is // locked, hence, physical changes to the window are + // not allowed. In addition the reading of the image ptr // is atomic, thus, even if the value changes we are // not affected. @@ -146,7 +146,7 @@ inline bool GlzDecoderWindow::is_empty() return (!_n_images); } -/* aprroximated overflow. Considers only the size that currently occupies the window and +/* approximated overflow. Considers only the size that currently occupies the window and not the size of the missing images. TODO: consider other measures */ inline bool GlzDecoderWindow::will_overflow(uint64_t image_id, uint64_t relative_head_id) { @@ -302,7 +302,7 @@ void GlzDecoderWindow::narrow_window(GlzDecodedImage *last_added) _missing_list.pop_front(); // removing the last added image from the missing list - /* maintaing the missing list: removing front images that already arrived */ + /* maintaining the missing list: removing front images that already arrived */ while (!_missing_list.empty()) { int front_win_idx = calc_image_win_idx(_missing_list.front()); if (_images[front_win_idx] == NULL) { // still missing |