Skip to content

Commit

Permalink
Rename dispatchFromThisThread -> executeFromThisThread
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier committed Jun 26, 2024
1 parent e2dd516 commit ebc6a9b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions java/src/Ice/src/main/java/com/zeroc/Ice/ConnectionI.java
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ public void message(com.zeroc.IceInternal.ThreadPoolCurrent current) {
final StartCallback finalStartCB = startCB;
final java.util.List<OutgoingMessage> finalSentCBs = sentCBs;
final MessageInfo finalInfo = info;
_threadPool.dispatchFromThisThread(
_threadPool.executeFromThisThread(
new com.zeroc.IceInternal.DispatchWorkItem(this) {
@Override
public void run() {
Expand Down Expand Up @@ -991,7 +991,7 @@ public Void call() throws Exception {
{
finish(close);
} else {
_threadPool.dispatchFromThisThread(
_threadPool.executeFromThisThread(
new com.zeroc.IceInternal.DispatchWorkItem(this) {
@Override
public void run() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ int invokeAsyncRequest(OutgoingAsyncBase outAsync, int batchRequestNum, boolean
} else if (_executor) {
_adapter
.getThreadPool()
.dispatchFromThisThread(
.executeFromThisThread(
new InvokeAllAsync(outAsync, outAsync.getOs(), requestId, batchRequestNum));
} else // Optimization: directly call dispatchAll if there's no executor.
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public DispatchWorkItem(com.zeroc.Ice.Connection connection) {
@Override
public final void execute(ThreadPoolCurrent current) {
current.ioCompleted(); // Promote a follower
current.dispatchFromThisThread(this);
current.executeFromThisThread(this);
}

public com.zeroc.Ice.Connection getConnection() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public synchronized boolean finish(EventHandler handler, boolean closeNow) {
return closeNow;
}

public void dispatchFromThisThread(DispatchWorkItem workItem) {
public void executeFromThisThread(DispatchWorkItem workItem) {
if (_executor != null) {
try {
_executor.accept(workItem, workItem.getConnection());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public void ioCompleted() {
_threadPool.ioCompleted(this);
}

public void dispatchFromThisThread(DispatchWorkItem workItem) {
_threadPool.dispatchFromThisThread(workItem);
public void executeFromThisThread(DispatchWorkItem workItem) {
_threadPool.executeFromThisThread(workItem);
}

final ThreadPool _threadPool;
Expand Down

0 comments on commit ebc6a9b

Please sign in to comment.