forked from KolibriOS/kolibrios
Forgot init_mutex ...
git-svn-id: svn://kolibrios.org@2403 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
815cb2a26f
commit
4aee41218a
@ -516,7 +516,7 @@ align 4
|
|||||||
call SOCKET_ring_create
|
call SOCKET_ring_create
|
||||||
|
|
||||||
pusha
|
pusha
|
||||||
lea ecx, [ebx + SOCKET.mutex]
|
lea ecx, [eax + SOCKET.mutex]
|
||||||
call mutex_unlock
|
call mutex_unlock
|
||||||
popa
|
popa
|
||||||
|
|
||||||
@ -1379,6 +1379,12 @@ SOCKET_alloc:
|
|||||||
mov ebx, [ebx + TASKDATA.pid]
|
mov ebx, [ebx + TASKDATA.pid]
|
||||||
mov [eax + SOCKET.PID], ebx
|
mov [eax + SOCKET.PID], ebx
|
||||||
|
|
||||||
|
; init mutex
|
||||||
|
pusha
|
||||||
|
lea ecx, [eax + SOCKET.mutex]
|
||||||
|
call mutex_init
|
||||||
|
popa
|
||||||
|
|
||||||
; add socket to the list by re-arranging some pointers
|
; add socket to the list by re-arranging some pointers
|
||||||
mov ebx, [net_sockets + SOCKET.NextPtr]
|
mov ebx, [net_sockets + SOCKET.NextPtr]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user