diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1997-09-02 08:51:09 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1997-09-02 08:51:09 +0000 |
commit | d75918f7e459b507ac6b4b95f14df0a1eedd4937 (patch) | |
tree | d489274cd8fb7fb5e1d196242667216a513dd5cf | |
parent | 61165f474f49ce6f90917937f8aee2627e564512 (diff) |
Ajout Lock/Unlock
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1695 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | byterun/md5.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/byterun/md5.c b/byterun/md5.c index 31a54e011..6ab81b8ac 100644 --- a/byterun/md5.c +++ b/byterun/md5.c @@ -42,6 +42,7 @@ value md5_chan(vchan, len) /* ML */ long toread, read; char buffer[4096]; + Lock(chan); MD5Init(&ctx); toread = Long_val(len); while (toread > 0) { @@ -53,6 +54,7 @@ value md5_chan(vchan, len) /* ML */ } res = alloc_string(16); MD5Final(&Byte_u(res, 0), &ctx); + Unlock(chan); return res; } |