1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Extended the thread-safety locking to the file descriptors.

git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14844 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-02-28 13:22:53 +00:00
parent 1df294c07e
commit c799b17bb9
25 changed files with 282 additions and 52 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: unistd_sync_fd.c,v 1.1 2005-02-18 18:53:17 obarthel Exp $
* $Id: unistd_sync_fd.c,v 1.2 2005-02-28 13:22:53 obarthel Exp $
*
* :ts=4
*
@ -52,6 +52,8 @@ __sync_fd(struct fd * fd,int mode)
{
assert( fd != NULL );
__fd_lock(fd);
if(fd->fd_DefaultFile != ZERO)
{
/* The mode tells us what to flush. 0 means "flush just the data", and
@ -67,4 +69,6 @@ __sync_fd(struct fd * fd,int mode)
DoPkt(fh->fh_Type,ACTION_FLUSH, 0,0,0,0,0);
}
}
__fd_unlock(fd);
}