* Fixed wrong use of MutexLocker as pointed out by Korli - nice catch! This
could have caused a number of problems. * Fixed coding style violation Ingo introduced. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29378 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -297,7 +297,7 @@ get_fd_locked(struct io_context *context, int fd)
|
||||
struct file_descriptor *
|
||||
get_fd(struct io_context *context, int fd)
|
||||
{
|
||||
MutexLocker(context->io_mutex);
|
||||
MutexLocker _(context->io_mutex);
|
||||
|
||||
return get_fd_locked(context, fd);
|
||||
}
|
||||
@@ -306,7 +306,7 @@ get_fd(struct io_context *context, int fd)
|
||||
struct file_descriptor *
|
||||
get_open_fd(struct io_context *context, int fd)
|
||||
{
|
||||
MutexLocker(context->io_mutex);
|
||||
MutexLocker _(context->io_mutex);
|
||||
|
||||
file_descriptor *descriptor = get_fd_locked(context, fd);
|
||||
if (descriptor == NULL)
|
||||
|
||||
Reference in New Issue
Block a user