aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorMarco Ziener <mziener@lavabit.com>2010-10-14 14:42:48 +0200
committerMarco Ziener <mziener@lavabit.com>2010-10-14 14:42:48 +0200
commitef4e9912fcb98fedd6926dd93deb9bdbaaa244e3 (patch)
treea986f29be5d55558e44526960b08e5816d059750 /server
parent9a20d171233eca0dee4a2c854cd15a878312ba65 (diff)
downloaderlang-ef4e9912fcb98fedd6926dd93deb9bdbaaa244e3.tar.gz
erlang-ef4e9912fcb98fedd6926dd93deb9bdbaaa244e3.tar.xz
erlang-ef4e9912fcb98fedd6926dd93deb9bdbaaa244e3.zip
Locking added~
Diffstat (limited to 'server')
-rw-r--r--server/media.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/media.erl b/server/media.erl
index 7e84b28..cbd9328 100644
--- a/server/media.erl
+++ b/server/media.erl
@@ -1,5 +1,5 @@
-module(media).
--export([init/0,insert/3, ask/2, all/0, play/3, vote/2, devote/2]).
+-export([init/0,insert/3, ask/2, all/0, play/3, vote/2, devote/2, lock_process/2]).
-define(TESTPATTERN, "../ac/*.mp3").
-define(TIMEOUT, 10000).
@@ -137,7 +137,7 @@ unlock(Artist, Title) ->
end,
mnesia:transaction(F).
-lock_prozess(Artist, Title) ->
+lock_process(Artist, Title) ->
lock(Artist, Title),
receive