fix from Scott Goehring for a thread deadlock

Sun Jun 28 00:23:52 EDT 1998 Adrian Likins <adrian@gimp.org>

        * app/tile.c : fix from Scott Goehring for a thread deadlock

-adrian
This commit is contained in:
EDT 1998 Adrian Likins 1998-06-28 05:34:46 +00:00 committed by Adrian Likins
parent 2f7b84ae4d
commit 14560bb94c
3 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Sun Jun 28 00:23:52 EDT 1998 Adrian Likins <adrian@gimp.org>
* app/tile.c : fix from Scott Goehring for a thread deadlock
Fri Jun 26 17:22:00 PDT 1998 Manish Singh <yosh@gimp.org> Fri Jun 26 17:22:00 PDT 1998 Manish Singh <yosh@gimp.org>
* libgimp/gimp.[ch] * libgimp/gimp.[ch]

View File

@ -69,11 +69,14 @@ tile_ref (Tile *tile)
/* Call 'tile_manager_validate' if the tile was invalid. /* Call 'tile_manager_validate' if the tile was invalid.
*/ */
if (!tile->valid)
tile_manager_validate ((TileManager*) tile->tm, tile);
#if USE_PTHREADS #if USE_PTHREADS
pthread_mutex_unlock(&(tile->mutex)); pthread_mutex_unlock(&(tile->mutex));
#endif #endif
if (!tile->valid)
tile_manager_validate ((TileManager*) tile->tm, tile);
} }
void void

View File

@ -69,11 +69,14 @@ tile_ref (Tile *tile)
/* Call 'tile_manager_validate' if the tile was invalid. /* Call 'tile_manager_validate' if the tile was invalid.
*/ */
if (!tile->valid)
tile_manager_validate ((TileManager*) tile->tm, tile);
#if USE_PTHREADS #if USE_PTHREADS
pthread_mutex_unlock(&(tile->mutex)); pthread_mutex_unlock(&(tile->mutex));
#endif #endif
if (!tile->valid)
tile_manager_validate ((TileManager*) tile->tm, tile);
} }
void void