Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Removing duplicated method
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Nov 7, 2019
1 parent 35017bb commit 07d2a2f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/ThreadedFFI/TFRunner.class.st
Expand Up @@ -129,23 +129,6 @@ TFRunner >> release [
callbackInvocationStack := nil ]
]

{ #category : #executing }
TFRunner >> returnCallback2: aCallbackInvocation [
"Entry point to return a callback invocation.
Check the callbackInvocation stack to see if the given invocation is the last one.
If so, it can return safely.
Otherwise, throw an exception as returning means a bug in your application.
The user must guarantee callbacks return in the correct order"

stackProtect critical: [
callbackInvocationStack ifNil: [
^ self cannotReturnCallbackFromOldSession: aCallbackInvocation ].
(callbackInvocationStack top == aCallbackInvocation)
ifFalse: [ ^ self cannotReturnCallbackInWrongOrder: aCallbackInvocation ].
aCallbackInvocation returnExecution.
callbackInvocationStack pop ]
]

{ #category : #executing }
TFRunner >> returnCallback: aCallbackInvocation [
"Entry point to return a callback invocation.
Expand Down

0 comments on commit 07d2a2f

Please sign in to comment.